JQuery Programmer Question:
Download Questions PDF

What is the difference between parent() and parents() methods in jQuery?

JQuery Programmer Interview Question
JQuery Programmer Interview Question

Answer:

The basic difference is the parent() function travels only one level in the DOM tree, where parents() function search through the whole DOM tree.

Download JQuery Programmer Interview Questions And Answers PDF

Previous QuestionNext Question
Is there any difference between body onload() and document.ready() function?What is difference between prop and attr?