Which jQuery method is used to get the all ancestor elements of the selected element, all the way up to the document's root element (<html>)?
Options:
Explanation:
jQuery method
parents() is used to get the all ancestor elements of the selected element, all the way up to the document's root element (
).
Tags:
jQuery
Answer:
Which jQuery method is used to get the all ancestor elements of the selected element, all the way up to the document's root element (<html>) parents().