php – How to insert style into a Zend_Form_Element_Select element?

Question:

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

I'm using Zend Framework 1 .

Answer:

You can use setAttrib to enter your attribute and value:

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

More on here.

Scroll to Top
AllEscort