2010-09-16 17:13:38 +00:00
<!DOCTYPE html>
2010-11-02 01:46:29 +00:00
< html lang = 'en' > < head >
< meta charset = "utf-8" / > < meta http-equiv = 'content-type' content = 'text/html; charset=UTF-8' / > < / head > < body >
2010-09-18 16:20:35 +00:00
< div data-role = "page" >
2010-09-21 14:58:54 +00:00
< div data-role = "header" >
2010-09-16 17:13:38 +00:00
< h1 > jQuery.pushStack()< / h1 >
< / div >
2010-10-12 19:50:28 +00:00
< div data-role = "content" data-theme = "c" id = "jQuery.pushStack1" >
2010-09-16 17:13:38 +00:00
< h2 class = "jq-clearfix roundTop section-title" >
< span class = "name" > jQuery.pushStack( elements )< / span > < span class = "returns" > Returns: < a class = "return" href = "http://docs.jquery.com/Types#jQuery" > jQuery< / a > < / span >
< / h2 >
< div class = " entry-details" >
< p class = "desc" > < strong > Description: < / strong > Add a collection of DOM elements onto the jQuery stack.< / p >
< ul class = "signatures" >
< li class = "signature" id = "jQuery.pushStack-elements" >
< h4 class = "name" >
< span class = "versionAdded" > version added: < a href = "/category/version/1.0/" > 1.0< / a > < / span > jQuery.pushStack( elements )< / h4 >
< p class = "arguement" > < strong > elements< / strong > An array of elements to push onto the stack and make into a new jQuery object.< / p >
< / li >
< li class = "signature" id = "jQuery.pushStack-elements-name-arguments" >
< h4 class = "name" >
< span class = "versionAdded" > version added: < a href = "/category/version/1.3/" > 1.3< / a > < / span > jQuery.pushStack( elements, name, arguments )< / h4 >
< p class = "arguement" > < strong > elements< / strong > An array of elements to push onto the stack and make into a new jQuery object.< / p >
< p class = "arguement" > < strong > name< / strong > The name of a jQuery method that generated the array of elements.< / p >
< p class = "arguement" > < strong > arguments< / strong > The arguments that were passed in to the jQuery method (for serialization).< / p >
< / li >
< / ul >
< h3 > Example:< / h3 >
< div id = "entry-examples" class = "entry-examples" > < div id = "example-0" >
< h4 > < span class = "desc" > Add some elements onto the jQuery stack, then pop back off again.< / span > < / h4 >
< pre > < code class = "example" > jQuery([])
.pushStack( document.getElementsByTagName("div") )
.remove()
.end();< / code > < / pre >
< / div > < / div >
< / div >
< / div >
< / div >
< / body > < / html >