I need to attach javascript to Zend_Form_Element onchange event. How to do it?
Try to set setAttrib ($ name, $ value) like:
$element->setAttrib('onchange', 'jsFunction();');
You can find more information on Zend_Form_Element here .