Home »
MCQs »
jQuery MCQs
Which jQuery method is used to get the all ancestor elements between two given arguments?
90. Which jQuery method is used to get the all ancestor elements between two given arguments?
- parent()
- parents()
- parentsUntil()
- All of the above
Answer: C) parentsUntil()
Explanation:
jQuery method parentsUntil() is used to get the all ancestor elements between two given arguments.