[jQuery] Re: Selecting an option?

2007-08-23 Thread Karl Swedberg
On Aug 23, 2007, at 11:11 PM, Steve Finkelstein wrote: I'm trying to select an option in a successful callback function using the following syntax: $('select#make option').('#null').attr({ selected: selected }); Does anyone here see what's wrong? Yes, this part: .('#null') Is that

[jQuery] Re: Selecting an option?

2007-08-23 Thread Steve Finkelstein
Hiya Karl! Thanks for the reply. Just for those who might be searching the archives in the future, I figure I'd also give some useful insight. I haven't tried Karl's method, but I did run into http://www.texotela.co.uk/code/jquery/select/. I have some variables set after the DOM is loaded: var

[jQuery] Re: Selecting an option?

2007-08-23 Thread Anurag
You may also try $(#select [EMAIL PROTECTED]'whatever']) to select by id or if multiple selection was allowed, to get all selected options use $(#select [EMAIL PROTECTED]).doSomethingWithThem(); On Aug 23, 11:18 pm, Steve Finkelstein [EMAIL PROTECTED] wrote: Hiya Karl! Thanks for the