jQuery Misc toArray() Method
Example
Puts the
$("button").click(function(){
x=$("li").toArray()
for (i=0;i { alert(x[i].innerHTML); } }); Try it » The toArray() method returns the elements matched by the jQuery selector as an array. $( selector ).toArray()
Definition and Usage
Syntax
jQuery Miscellaneous Methods