how do you set the value in a dropdown programatically using jquery
Posted
by oo
on Stack Overflow
See other posts from Stack Overflow
or by oo
Published on 2010-03-29T03:15:01Z
Indexed on
2010/03/29
3:23 UTC
Read the original article
Hit count: 319
if i have a dropdown with the following html:
<select id="myDropdown" name="myDropdown">
<option value="6">Six</option>
<option value="5">Five</option>
<option value="3">Three</option>
<option value="1">One</option>
</select>
how can i have this dropdown change to a specific selected value after i click on a button?
© Stack Overflow or respective owner