You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by spo <ma...@roomity.com> on 2005/09/16 21:49:46 UTC

How to display selected options in color

In my html form, I need to have some of the drop-down options show up in red color, I foudn out that the way to do it in html is like this:
<option class="redfont" value="somevalue">display</option>
My problem is that we are using Struts and a taglib library that extends strtus OptionsTag to display the options. And inside the taglib code we're using LabelValueBean to create the options. Now, LabelValueBean doesn't provide me a way to set the "class" attribute for an option (to redfont) so I'm stuck
Any ideas?




-------------------------------------------------------------
<a href="http://Struts_User_List.roomity.com">Roomity.com</a>
roomity.com is broadband internet. ~~1126900186688~~
-------------------------------------------------------------