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

2007-12-30 Thread Eric Martin
I'm confused...how does a topic that I started get changed to something completely different? Is it just the way that Google displays the messages? Hmm... On Dec 30, 6:16 pm, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > Mike Schinkel schrieb:> Hi all: > > > Is there a one-liner to collect id attr

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

2007-12-30 Thread Eric Martin
I want to be able to determine wheter a jQuery object was created from an existing DOM element, or if it is new/created "on-the-fly". Given the following examples: Example 1: HTML: Title JavaScript: var elem = $('#title'); Example 2: var elem = $('Title'); How can I