The .get()
method grants us access to the DOM nodes underlying each jQuery object. Consider a simple unordered list:
The .get()
method grants access to the DOM nodes underlying each jQuery object. If the value of index
is out of bounds — less than 0 or equal to or greater than the number of elements — it returns undefined
. Consider a simple unordered list:
<ul>
<li id="foo">foo</li>