Forum Moderators: open

Message Too Old, No Replies

drop down list

         

mudogg80

6:40 pm on Jul 31, 2007 (gmt 0)

10+ Year Member



I have a drop down list that populates with items from my database. The first option is "Choose an Action". First, is it possible to that not clickable and secondly, how do I do that.

Thanks!

encyclo

7:20 pm on Jul 31, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can try using an
optgroup
to regroup all the
option
elements, like this:

<optgroup label="Choose an Action">
<option>option 1</option>
<option>option 2</option>
<option>option 3</option>
</optgroup>

mudogg80

8:06 pm on Jul 31, 2007 (gmt 0)

10+ Year Member



Oh yes that worked great, thank you so much!