70
rated 0 times
[
77]
[
7]
/ answers: 1 / hits: 42324
/ 14 Years ago, thu, august 12, 2010, 12:00:00
How can I sort the <option>
elements of a <select>
tag using JavaScript?
Here is the HTML I have:
<form action=example.asp>
<div>
<select size=3>
<option value=op2 >Option 2</option>
<option value=op1>Option 1</option>
<option value=op4>Option 4</option>
<option value=op3>Option 3</option>
</select>
</div>
</form>
More From » html