Default Selected Item

[Total: 0    Average: 0/5]

This will select the 4th item (indexed value is 3 since it starts at zero)

Body Code:

<form name=exf1>
<select name=s1>
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</form>
<script>
document.exf1.s1.selectedIndex=3;
</script>

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *