[jQuery] Re: create an empty jquery object

2007-06-20 Thread Klaus Hartl
Gordon wrote: Just a quick question, is there a way to quickly create a jQuery object that contains no elements at all so you can add() them as needed later in the script? I suggest (although I've never tested or used it): var empty = $([]); Note that $() will include the document

[jQuery] Re: create an empty jquery object

2007-06-20 Thread Aaron Heimlich
I believe it's var $emptyObj = jQuery([]); On 6/20/07, Gordon [EMAIL PROTECTED] wrote: Just a quick question, is there a way to quickly create a jQuery object that contains no elements at all so you can add() them as needed later in the script? -- Aaron Heimlich Web Developer [EMAIL