What is difference between find() method and filter() method in jquery traversal? [Resolved]

Posted by Kumarkrishna184 under jQuery on 12/15/2015 | Points: 10 | Views : 363 | Status : [Member] | Replies : 1
What is difference between find() method and filter() method in jquery traversal?

Thanks and Regards,
Krishna Kumar



Responses

Posted by: Rajnilari2015 on: 12/15/2015 [Member] [Microsoft_MVP] [MVP] Platinum | Points: 50

Up
0
Down

Resolved
Excerpt from my article (http://www.dotnetfunda.com/articles/show/1920/let-us-learn-jquery-part-3-of-9-jquery-traversal )
-----------------------------------------------------------------------------------------------------------------------

find()
Purpose:Once a match for a specified selector is made, this function searches for descendent elements.

Complete article: http://www.dotnetfunda.com/articles/show/1920/let-us-learn-jquery-part-3-of-9-jquery-traversal#4.1

filter()
Purpose:This function narrows down the search operation further and restricted the element sets to the extent that matches the selector initially.

Complete article: http://www.dotnetfunda.com/articles/show/1920/let-us-learn-jquery-part-3-of-9-jquery-traversal#4.4

Equally refer to the Techfunda articles on the same

a) filter: http://techfunda.com/Howto/jquery/331/filter-filter-element-from-group-of-similar-elements

b) find: http://techfunda.com/Howto/jquery/332/find-find-descendant-elements

Hope this helps

--
Thanks & Regards,
RNA Team

Kumarkrishna184, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response