Question

I am using zf2 framework. So that i need to implement something like,

i have tried to find it by search it on internet but i could not find any tutorials about this problem.

Thanks

Was it helpful?

Solution

Try this.

    $element = new Element\Radio('name');
    $element->setAttribute('onClick', 'if(this.checked){myFunction()}');
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top