December 2013
Intermediate to advanced
384 pages
9h 54m
English
$("p").first(); //selects the first <p> elmemnt in the set $("p").last(); //selects the last <p> elmemnt in the set
The .first() method selects the first element in the jQuery object’s set. Many of the jQuery methods that return values end up using the first element in the set. The .last() method selects the last element in the jQuery object’s set.
Read now
Unlock full access