Yes you can do this:

$element = $this->addElement('select', 'parent_structure', array(
  'label' => 'Parent: ',
  'id' => 'parent_structure,
  'isArray' => false,
  'multiOptions' => $this->_getTreeStrut(),  // this get the values and such
for options.
));

$element->setAttrib('disable',array('val1','val5'));

this will set options with val1 and val5 disabled

-----
visit my website at  http://www.phpscriptor.com/ http://www.phpscriptor.com/ 
-- 
View this message in context: 
http://www.nabble.com/Zend_Form-Select-Element-tp21735298p22110671.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to