To collect a group of elements, we pass the selector to the jQuery function using the simple syntax
1 2 3 |
$(selector) or jQuery(selector) |
The $() function (an alias for the jQuery() function) returns a special JavaScript object containing an array of the DOM elements, in the order in which they are defined within the