question about select tag

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • runway27
    Banned
    New Member
    • Sep 2007
    • 54

    #1

    question about select tag

    I would like an option in the select tag not to be selected by default but appear as the first option when the file is loaded. i have used the following code

    <option disabled="disab led" selected="selec ted">Select Category</option>

    however this works in firefox but not in Internet Explorer how can i change the above code to work in both the browsers

    please advice.

    thanks.
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Unfortunately, IE currently doesn't allow you to disable individual options. It wasn't fixed in IE7. I don't know if it'll be fixed in IE8. The only solution is to use JavaScript to emulate it.

    Comment

    Working...