Home »
MCQs »
jQuery MCQs
Which jQuery method is used to get the direct parent element of the selected element?
88. Which jQuery method is used to get the direct parent element of the selected element?
- parent()
- parents()
- parentsUntil()
- All of the above
Answer: A) parent()
Explanation:
jQuery method parent() is used to get the direct parent element of the selected element.