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 supposed to be the id of one of the options? if so, you could write it like this:

$('#null').attr({ selected: "selected" });

Since IDs are unique, no need to give it context.

--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com


Reply via email to