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?

  1. parent()
  2. parents()
  3. parentsUntil()
  4. All of the above

Answer: A) parent()

Explanation:

jQuery method parent() is used to get the direct parent element of the selected element.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.