Say I have a HTML form containing this select element:
<select name="mySelect" id="mySelect">
<option value="1" id="option1">1</option>
<option value="2" id="option2">2</option>
</select>
How can I use prototype to select one of the option elements?
The methods listed in the API reference of Form.Element don't seem to help with this.
edit: by "select" I mean the equivalent effect of the "selected" attribute on an option element.