Easy Tutorial
❮ Event Result Jquery Traversing Filtering ❯

jQuery Miscellaneous toArray() Method

jQuery Miscellaneous Methods

Example

Convert <li> elements into an array and then output the innerHTML of the array elements:


Definition and Usage

The toArray() method returns the elements matched by the jQuery selector as an array.


Syntax


jQuery Miscellaneous Methods

❮ Event Result Jquery Traversing Filtering ❯