[jQuery] Re: Determining if a jQuery object is attached to an existing DOM

2007-12-31 Thread Eric Martin
Well, that explains why I couldn't find it =) The offsetParent doesn't seem to work for me in this case. I have a plugin that is trying to determine if the passed in content was attached to the DOM. What I ended up doing was checking object.parent().parent().size(). If it is > 0, it must have bee

[jQuery] Re: Determining if a jQuery object is attached to an existing DOM

2007-12-31 Thread Byron
Hi Eric, it appears mike changed the topic "Discussion subject changed to "Collecting id attributes for checked input?" by Mike Schinkel" i think you can use the offsetParent property to check if a node is a attached to the document. $('')[0].offsetParent === null; --Byron