KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How can one get all the leaf nodes, let's say divs, from the DOM? I am trying to think of an optimal solution, if there's no easy and magical selector for this. I thought of using the "reachedElem.find('div').length == 0" but I am not sure if this is the right direction. Any ideas?
Tags (comma-separated)
Save Edits
Cancel