How to insert style into a Zend_Form_Element_Select element?

7

How can I insert a style into a option element using Zend_Form?

I'm using Zend Framework 1 .

    
asked by anonymous 20.01.2014 / 20:47

1 answer

3

You can use setAttrib to enter your attribute and value:

foreach ($this->getElements() as $element) {
      $element->setAttrib('class', $minhaClasse);
}

More about, here.

    
20.01.2014 / 20:56