JQuery Programmer Question:

Download Job Interview Questions and Answers PDF

How to get the direct parent of an element using jQuery?

JQuery Programmer Interview Question
JQuery Programmer Interview Question

Answer:

The parent( [selector] ) method gets the direct parent of an element. If called on a set of elements, parent returns a set of their unique direct parent elements.

Download JQuery Programmer Interview Questions And Answers PDF

Previous QuestionNext Question
What are the slow selectors in jQuery?What is the difference between .js and .min.js?