Difference
between find() and children() in jQuery
-
S.NoJquery.find()Jquery.children()1 What it does ?Search through the matched elements’ child, grandchild, great-grandchild…any levels down.What it does ?Search through the matched elements’ child only (single level down).
Summary:
Both
find() and children() methods are used to filter the child of the
matched elements, except the former is travels any level down, the
latter is travels a single level down.
Reference:
No comments:
Post a Comment