Difference between find() and closest() in jquery?



Difference between find() and closest() in jquery?..

Answer / Tripti Kaushik

find() is a jQuery method that searches within a set of elements for specified descendants, while closest() searches up the DOM tree for an ancestor that matches the given selector.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More jQuery Interview Questions

How to debug jQuery?

1 Answers  


How do you get the text value of a selected option?

1 Answers  


How to run an event handler only once in jQuery?

1 Answers  


What is finish method in jQuery?

1 Answers  


How to check jQuery version?

1 Answers  


Explain type paremeter of jquery ajax method?

1 Answers  


What is the difference between $.map and $.grep in jQuery?

1 Answers  


Explain which program is useful for testing jquery?

1 Answers  


Explain the difference between $(this) and 'this' in jquery?

1 Answers  


What is a cdn? : jQuery Mobile

1 Answers  


Is it possible to use jquery to make ajax request? : jquery mobile

1 Answers  


How to add a class to html element?

1 Answers  


Categories