I want know how to add custom attribute for option in a select field of Zend form.
PHP:
$option_values = array(\"multiOptions\" => array(
\"US
You could extend / overwrite the Zend_View_Helper_FormSelect helper but the real problem is going to be getting the extra data into each option.
By default, Zend_Form_Element_Select (via Zend_Form_Element_Multi) expects two strings for each option, one for the value attribute and an optional one for the text content. You may need to create your own element to handle the extra data.