Selected option in view when SIZE is greater than 1
Posted
by joe
on Stack Overflow
See other posts from Stack Overflow
or by joe
Published on 2010-05-04T20:35:13Z
Indexed on
2010/05/04
20:38 UTC
Read the original article
Hit count: 280
How do you get the selected option to be in view on page load?
<select name="whatever" size="5">
<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>
<option value="6">6</option>
<option value="7" selected>7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
© Stack Overflow or respective owner