[jQuery] Re: How to select option in SELECT

2008-09-23 Thread MorningZ
MUCH easier than even that $("#choose").val("2"); would select "Dog" On Sep 23, 5:07 pm, ricardobeat <[EMAIL PROTECTED]> wrote: > Cheese > > or > > $('#choose [value=1]').attr('selected','selected'); > > On Sep 23, 11:26 am, "J.A. Oord" <[EMAIL PROTECTED]> wrote: > > > How do I set the sel

[jQuery] Re: How to select option in SELECT

2008-09-23 Thread ricardobeat
Cheese or $('#choose [value=1]').attr('selected','selected'); On Sep 23, 11:26 am, "J.A. Oord" <[EMAIL PROTECTED]> wrote: > How do I set the selected value in a SELECT? > > ie: I have this form: > > >    Cheese >    Dog > > > and I want Dog to be the selected item. How do I do this?