jquery select element without child 1

jquery select element without child

$("span:not(:has(*))")

Here is what the above code is Doing:
1. Select all span elements
2. Filter out all span elements that have children
3. Return the remaining span elements

Similar Posts