Well new to the java stuff and having trouble with assigning a class attribute to this SELECT options. wanted to know if the listClass is correct? What I'm trying to accomplish is to add a class attribute to the options of a SELECT drop down
What I have:
<select>
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="ford">F150</option>
</select>
What I would like:
<select>
<option class="car" value="volvo">Volvo</option>
<option class="car" value="saab">Saab</option>
<option class="car" value="mercedes">Mercedes</option>
<option class="truck" value="ford">F150</option>
</select>
Here is the JSP code:
<s:select id="theSelectId"
name="theDto.id"
value="#attr.theDto.field_id"
list="theDtoList"
listKey="field_id"
listValue="field_value"/>
Is there a listClass? or another way of pulling the values that I need?