How to select elements which do not have a specific child element with JQuery

You could try:

$("p:not(:has(>div))")

Leave a Comment