ZF-8684: Zend_Form_Element_Multi's multi options don't support $options (htmlOptions) like all the other htmlelements in Zend_Form


With Zend_Form_Element_Multi->addMultiOption($option, $value) it is not possible to set html-options of those options you are adding. (And the

What i would want is being able to set the class or other html options of the options in a select. Like the view renderer can render options in almost any html-element used in the form. $option

Classes that need to be changed: Zend_Form_Element_Multi: allow (html)options to multiOptions instead of only a $option and a $value. addMultiOption($option, $value) to addMultiOption($option, $value, $options)

Zend_View_Helper_FormSelect: needs to render the html options.

Zend_View_Helper_FormRadio: same as Zend_View_Helper_FormSelect


See discussion about changes in Zend_Form 2.0

My fix: [] Example with red background: $combobox = new Zend_Form_Element_Select('list'); $combobox->addMultiOption('value', 'visibleText', array('style'=>'background-color: #FF0000;'));