What is the difference between parent() and parents() methods in jQuery?
Answer Posted / 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 View All Answers
How to get the current offset of the first matched element, in pixels, relative to the document using ?
How to resolve conflicts with other libraries?
How to find grand children in of an element?
What is the difference between $.map and $.grep in jQuery?
Have any of your startup projects failed dismally - if so, why and how did you learn from them?
How do you update ajax response with id " resilts"?
What are the various ajax functions available in jquery ?
List browser related issues for jquery?
What is the difference between the id selector and class selector in jquery?
How to get/set the html contents of an element using jQuery?
Why are not some scripts and styles loading? : jquery mobile
How to validate email using jquery?
Which version of jquery file should be used?
What is the use of jQuery load method?
How can you add a jquery library in your project?