Getting an empty JQuery object
This creates an empty jQuery-object:
$([])
Update: In newer versions of jQuery (1.4+), you can use:
$()
$();
Returning an Empty Set
As of jQuery 1.4, calling the
jQuery()
method with no arguments returns an empty jQuery set (with a.length
property of 0). In previous versions of jQuery, this would return a set containing the document node.
Source: api.jquery.com