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

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

0 Answers  


What is the difference between "#" and "." selector in JQuery?

0 Answers  


Can you write a jquery code to select all links inside the paragraph?

0 Answers  


How can events be prevented to work after an ajax request?

0 Answers  


Difference between parent() and parents() in jQuery?

0 Answers  






Is jquery html() method works for both html and xml documents?

0 Answers  


Why is not dom ready working for jquery mobile? : jquery mobile

0 Answers  


Explain the term method chaining? : jQuery Mobile

0 Answers  


What programming language does jquery use?

0 Answers  


Explain .empty() vs .remove() vs .detach().

0 Answers  


Can you give me a brief history of your programming days? Where did it all start?

0 Answers  


How can related code be encapsulated? Give example.

0 Answers  


Categories