144
rated 0 times
[
148]
[
4]
/ answers: 1 / hits: 55295
/ 14 Years ago, fri, august 7, 2009, 12:00:00
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.
More From » html