JQuery difference between searching 'children' and 'find'?

后端 未结 3 892
Happy的楠姐
Happy的楠姐 2021-01-07 19:16

When is one preferred over the other when searching for nested Divs?

3条回答
  •  悲哀的现实
    2021-01-07 19:52

    find() vs childern() in jQuery

    find() – search through the matched elements in all the subsequent level ,All levels down.

    children() – search through the matched elements’ child only (single level down).

提交回复
热议问题