HTML selected="selected" not working [closed]
Hi can somebody tell me what is the wrong in the below code?
Selected="selected" not working for me.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<select id="tstselect" name="tstselect" onchange="showselected(this.value);">
<option value="0" >0</option>
<option value="1" >1</option>
<option value="2" >2</option>
<option value="3" selected="selected">3</option>
</select>
Thanks in advance
Solution 1:
You probably have something on your page selecting the value. You might be able to quickly verify that if the same value is still selected after changing the order of the options in the html...
You might want to refer to: Firefox ignores option selected="selected"