jQuery Mobile Question:
Download Questions PDF

Can you please explain the difference between parent() and parents() methods in jQuery?

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 Mobile Interview Questions And Answers PDF

Previous QuestionNext Question
What is jquery.length?What is eq()?