Wednesday, October 1, 2008

[jQuery] Re: form select...

<form>
Select your favorite fruit:
<select id="fruits">
<option>Apple</option>
<option>Orange</option>
<option>Pineapple</option>
<option>Banana</option>
</select>
</form>

In the form above how do I programmatically set using jQuery the
Pineapple option as the selected default?

No comments: