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

How to debug jquery code/ debug jquery?

0 Answers  


How to select element having a particular class (".selected")?

1 Answers  


Will Events Are Also Copied On Clone In Jquery?

0 Answers  


What is jquery selectors?

0 Answers  


Where jquery mobile works? : jquery mobile

0 Answers  






What is the difference between prop and attr?

0 Answers  


Difference between event.PreventDefault and event.stopPropagation?

0 Answers  


What are selectors in jquery?

0 Answers  


How can an element be checked if it contains a specific class?

0 Answers  


How can jquery library be added to pages? Write a basic jquery code?

0 Answers  


How we can remove an attribute of an html tag in jquery?

0 Answers  


What is the use of queue() in jquery?

0 Answers  


Categories