.pushStack( elements )Returns: jQuery

Description: Add a collection of DOM elements onto the jQuery stack.

Example:

Add some elements onto the jQuery stack, then pop back off again.

1
2
3
4
jQuery([])
.pushStack( document.getElementsByTagName("div") )
.remove()
.end();