> 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?


Think of the jQuery object as an array.  In your case the array has a
length of 1.

var extractedDOMObject = myJQueryRef[0];

Reply via email to