JQuery Programmer Question: Download JQuery Programmer PDF

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

Tweet Share WhatsApp

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 PDF Read All 201 JQuery Programmer Questions
Previous QuestionNext Question
Is there any difference between body onload() and document.ready() function?What is difference between prop and attr?