Onclick individual options in Zend_Form_Radio and Zend_Form_MultiCheckbox

View: New views
2 Messages — Rating Filter:   Alert me  

Onclick individual options in Zend_Form_Radio and Zend_Form_MultiCheckbox

by Oscar Pascual :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is there a way of giving different onclick functions for individual
options in a set of radio buttons or checkboxes? I have a javascript
function that shows a comboBox or hides it depending on which radio
button you select. This is different that giving the same function for
the whole radio button or checkbox list element, I can't see how to do
this from the library code.

Thanks for the help!

RE: Onclick individual options in Zend_Form_Radio and Zend_Form_MultiCheckbox

by Matthijs Hollemans :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Oscar Pascual wrote:
> Is there a way of giving different onclick functions for individual
> options in a set of radio buttons or checkboxes? I have a javascript
> function that shows a comboBox or hides it depending on which radio
> button you select.

I "solved" this by distinguishing which radio button is selected in the
JavaScript function, and then taking the proper action.

-Matthijs