A repository of over 1000 quality jQuery plugins

jQuery .toArray()

Learn all about the jQuery function .toArray().

.toArray() returns all of the elements in the jQuery set:

1
alert( $( "li" ).toArray() );

All of the matched DOM nodes are returned by this call, contained in a standard array:

[<li id="foo">, <li id="bar">]