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



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

Answer / chaitanya

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

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More jQuery Interview Questions

What are the various ajax functions?

1 Answers  


Explain finish method in jquery? : jquery mobile

1 Answers  


What are jquery selectors?

1 Answers  


How to control page titles in jquery mobile? : jquery mobile

1 Answers  


What are the fastest selectors in jQuery?

1 Answers  


What is a cdn? : jQuery Mobile

1 Answers  


Name 3 available jquery plugins that bootstrap has in their query plugin library.

1 Answers  


What are the methods used to provide effects in jquery?

1 Answers  


Is it too early to discuss jquery ui 1.8?

1 Answers  


What is jQuery?

1 Answers  


What are some of the ways to provide effects? : jQuery Mobile

1 Answers  


Define cdn in jquery?

1 Answers  


Categories