Anders Gunnarsson wrote:
I'm creating a select box, and adding the options using "addMultiOptions".

How can I set CSS Class to the option-tags?

<select>
  <option class="myClass" value="1">1</option>
  <option class="myClass" value="2">2</option>
  <option class="myClass" value="3">3</option>
</select>
Afaik, you can't, but there is really no need if you're going to give all your options the same class, you could simply give your select a classname and create a

select.yourclassname option {
   /* ... */
}

css rule

Reply via email to