[jQuery] Re: Selection an option

2007-09-30 Thread Glen Lipka
You need to find the option, not the select. var monthVar = from the server or wherever; $(#intended_start_month option[value= + monthVar + ]).attr(selected, selected); Glen On 9/30/07, voltron [EMAIL PROTECTED] wrote: Hi all, how would select an option and set its attribute to selected?

[jQuery] Re: Selection an option

2007-09-30 Thread wattaka
Glen saves the day again, thanks! On Sep 30, 9:47 pm, Glen Lipka [EMAIL PROTECTED] wrote: You need to find the option, not the select. var monthVar = from the server or wherever; $(#intended_start_month option[value= + monthVar + ]).attr(selected, selected); Glen On 9/30/07, voltron