How to set drop down list option up to specific value
Posted
by bugbug
on Stack Overflow
See other posts from Stack Overflow
or by bugbug
Published on 2010-02-15T13:11:22Z
Indexed on
2010/03/24
4:33 UTC
Read the original article
Hit count: 309
If I have valvo that obtain from database, How can I set volvo option status into active(checked) by using JQuery?
<select name="car">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>
I don't know how to manager control that have same identity.
??? $('input[name="car"]').attr('checked', true);
© Stack Overflow or respective owner