On May 20, 3:37 pm, Jerome <[EMAIL PROTECTED]> wrote: > I'm not quite sure how to describe, or search for, my question in > existing discussions. I apologize in advance for my lack of search > savvy. > > I understand that you can take an ordinary DOM object and create a > jQuery reference out of it: > > var myDOMObject = document.myform.mytextfield; > var myJQueryRef = $(myDOMObject); > var myHtml = myJQueryRef.html(); > > I know, I can chain. But for the sake of this example, I won't. > > Is there a way to do the opposite? An imaginary method could be: > > var extractedDOMObject = myJQueryRef.extractObject(); > var myHtml2 = extractedDOMObject.innerHTML; > > What might be used to replace the imaginary extractObject() method?
You want $.get(), which returns an array of DOM elements, or $.get(index) which returns a single element. If you want a single item, then $('#objectOfMyDesire').get(0) is your method of choice. Reference: http://docs.jquery.com/Core/get Cheers, Pyro