can i use like this
i don't want to use style in the option tag.
because i am getting the option text from database.
so i want to apply style to the text only.
because i have no chance to use styles in the option tag. that is strictly avoided by my existing code.i am allowed to do changes to the text part only.
i am not allowed to touch option tag or select tag.
i tried like this also
any help pls...
Code:
<select name="test" > <option value="1">option</option> <option value="2"><p style="background-color:#FF0055;">again</p></option> </select>
because i am getting the option text from database.
so i want to apply style to the text only.
because i have no chance to use styles in the option tag. that is strictly avoided by my existing code.i am allowed to do changes to the text part only.
i am not allowed to touch option tag or select tag.
i tried like this also
Code:
<option value="2"><font color=red>again</font></option>
Comment