Home »
MCQs »
jQuery MCQs
Let suppose there are multiple <h3> elements in an HTML document, which is the correct jQuery statement to get the last <h3> element?
100. Let suppose there are multiple <h3> elements in an HTML document, which is the correct jQuery statement to get the last <h3> element?
- $("h3").last();
- $("h3").children();
- $("h3").lastChild();
- $("h3").down();
Answer: A) $("h3").last();
Explanation:
The correct jQuery statement to get the last <h3> element is:
$("h3").last();