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
Can you please explain the difference between prop and attr? : jquery mobile
What is the jQuery code to select all links inside the paragraph?
What is the difference between jquery-x.x.x.js and jquery.x.x.x min.js?
How we can set the html contents of an element in jquery?
Why do we use jquery? : jquery mobile
How we can select multiple elements in jquery?
Why jQuery is better than JavaScript?
What are jquery selectors?
What is parseint() and why it is used?
Difference between document.ready and window.onload? : jQuery Mobile
Is window.onload is different from document.ready()?
How to revert the most recent ‘destructive’ operation, changing the set of matched elements to its previous state using ?
What is resize() function in jquery?
How We Can Write Code Specific To Browser In Jquery?
How can we apply css in last child of parent using jquery library?