[jQuery] Re: Question about the context attribute of a jQuery call

2007-05-24 Thread Rob Desbois
EMAIL PROTECTED] On Behalf Of Josh Nathanson Sent: Wednesday, May 23, 2007 2:26 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Question about the context attribute of a jQuery call The OP has a case where there are two forms, each with its own ID, however, the elements of each form

[jQuery] Re: Question about the context attribute of a jQuery call

2007-05-23 Thread Andy Matthews
PROTECTED] On Behalf Of Josh Nathanson Sent: Wednesday, May 23, 2007 2:26 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Question about the context attribute of a jQuery call The OP has a case where there are two forms, each with its own ID, however, the elements of each form are the sam

[jQuery] Re: Question about the context attribute of a jQuery call

2007-05-23 Thread Daemach
> To: "jQuery (English)" > Sent: Wednesday, May 23, 2007 11:46 AM > Subject: [jQuery] Re: Question about the context attribute of a jQuery call > > > I think you can use a selector in a context attribute, but there isn't > > much point in this situation. If all

[jQuery] Re: Question about the context attribute of a jQuery call

2007-05-23 Thread Josh Nathanson
e not duplicated. -- Josh - Original Message - From: "Daemach" <[EMAIL PROTECTED]> To: "jQuery (English)" Sent: Wednesday, May 23, 2007 11:46 AM Subject: [jQuery] Re: Question about the context attribute of a jQuery call I think you can use a selector in a con

[jQuery] Re: Question about the context attribute of a jQuery call

2007-05-23 Thread Daemach
I think you can use a selector in a context attribute, but there isn't much point in this situation. If all of your ID's are unique (and they should be), $('#make') is enough. You don't need a context. When you use the #, it's the same as doing document.getElementByID(); On May 23, 11:19 am, "S

[jQuery] Re: Question about the context attribute of a jQuery call

2007-05-23 Thread Josh Nathanson
It's invalid to have a string as the second parameter to jQuery. I don't know if that's true? I have this that works fine, to select the first option in a select (id 'prodlist'): $("option:first","#prodlist").attr("selected",true); -- Josh

[jQuery] Re: Question about the context attribute of a jQuery call

2007-05-23 Thread Sean Catchpole
$('#make','#redlineSelect').click( do something here) It's invalid to have a string as the second parameter to jQuery. Try this instead: $("#redlineSelect #make").click(...); ~Sean

[jQuery] Re: Question about the context attribute of a jQuery call

2007-05-23 Thread Benjamin Sterling
I would say yes. -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com

[jQuery] Re: Question about the context attribute of a jQuery call

2007-05-23 Thread Andy Matthews
Looks like I answered my own question. Doesn't appear that this is possible. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Wednesday, May 23, 2007 1:01 PM To: jquery-en@googlegroups.com Subject: [jQuery] Question about the context attribute