Views: 3.4K
Replies: 0
Archived
|
Setting the selected attribute on a select list in jQueryI have the following scenario and want to be able to quickly set one of the items as selected, like so:
<select id="cities"> <option>London</option> <option>Brighton</option> <option>Birmingham</option> </select> <select id="cities"> <option>London</option> <option>Brighton</option> <option selected="selected">Birmingham</option> </select> Jacob Tanner, Feb 20, 2013
|