Use jQuery select an option?
javascript, jquery
Solution
Set an id on the select element instead:
<select id="TheDropDown">
<option value="0">n</option>
<option value="1">m</option>
</select>
Then use the `val` function:
$('#TheDropDown').val('1');
Problem
``` <select> <option value="0" id="n">n</option> <option value="1" id="m">m</option> </select> ``` In jQuery, how do I make the option 'selected' for id=m?