.toArray()Returns: Array
Description: Retrieve all the elements contained in the jQuery set, as an array.
-
version added: 1.4.toArray()
- This method does not accept any arguments.
.toArray()
returns all of the elements in the jQuery set:
alert( $( "li" ).toArray() );
All of the matched DOM