Doh... That's what I get for not fully reading the question.

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Shawn
Sent: Tuesday, April 01, 2008 4:11 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Standard DOM returned from jQuery selector



Those are alternate methods to get a jQuery reference to the same 
element.  But it's still not a DOM reference.  For that you'd need the 
[0] that Karl indicated.  The .get(0) method might be suitable here as 
well, but I'm not clear right now if that returns a DOM object or a 
jQuery object - I *think* it's a DOM object, but it's been a while since

I've used it....

Shawn

Smith, Allex wrote:
> What about
> 
> $('#context .target')
> 
> Or
> 
> $('#context div')
> 
> Allex
> 
> -----Original Message-----
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] 
> On Behalf Of Jesse
> Sent: Tuesday, April 01, 2008 12:37 PM
> To: jQuery (English)
> Subject: [jQuery] Standard DOM returned from jQuery selector
> 
> 
> 
> I have a feeling I'm just missing something in the documentation, but 
> is there anyway to get a standard DOM object to return from a jquery 
> selector?
> 
> <div id="context">
>    <div class="target"></div>
> </div>
> 
> Essentially I want a way for $('.target', '#context')  to give me the 
> equivalent of 
> document.getElementById('context').getElementsByTagName('div')[0]

Reply via email to