Attach JavaScript event handler to Zend_Form_Element

I need to attach javascript to Zend_Form_Element onchange event. How to do it?

+1


source to share


1 answer


Try to set setAttrib ($ name, $ value) like:

$element->setAttrib('onchange', 'jsFunction();');

      



You can find more information on Zend_Form_Element here .

+5


source







All Articles