I have a drop down list, which renders on the page like this:
<select id="DropDown">
<optgroup label="">
<option value="-1">
</option>
</optgroup>
<optgroup label="Group 1">
<option value="1">Item 1</option>
<option value="2">Item 2</option>
<option value="3">Item 3</option>
</optgroup>
<optgroup label="Group 2">
<option value="11">Item 4</option>
<option value="12">Item 5</option>
</optgroup>
</select>
How can I use Javascript (with JQuery) to change the dropdown value? In past instances, I've iterated through the list of dropdown.options for the dropdown to find my desired value, and then set the select index based on that--but that option is not available to me with the optgroups there.