[jQuery] set certain items in a select list to selected.
Ok lets say i have a multiple select list
<select id=mylist name=mylist[]>
<option id=1>first</option>
<option id=2>second</option>
<option id=3>third</option>
<option id=4>fourth</option>
<option id=5>fifth</option>
</select>
then i have a string of id's that i want to set to selected like so.
var selectedIds = '1,3,5';
is it possible to use jquery (preferably in a one liner) to set first,
third and fifth to selected.?