Welcome to WebmasterWorld Guest from 18.104.22.168
Forum Moderators: incrediBILL
Does anyone have any idea whether it's possible to set a default option for an html drop-down select box?
I have an ordered set of options, but would like to highlight an option as a default without necessarily having it first in the list. I had a faint recollection of it being as simple as
<option value="x" default>x</option>
but it doesn't seem to work (at least not for Mozilla anyway), so I must be wrong on that.
For a bonus point, is there a way to do it for 'select multiple' form elements?
Thanks in advance!