jQuery
TOPICS
February 2019
Find elements inside NodeList using jQuery
February 3 | Js
Using jquery.find()
we can find by element or selector. This is a use case where we have a variable with a NodeList object.
jquery.find()
// Get a list of elements and initialize with another function
\$(items).find(".collapse-card").paperCollapse();
// Combine with each(Integer index, Element element) to explore its content.
\$(items).find(".collapse-card").each( (i,e) => console.log(e));
References:
https://api.jquery.com/find/
https://api.jquery.com/each/