When I use the :contains selector, it returns all elements (including parents/ancestors) matching the selector. How can I just return the child-most/deepest
:contains
Try
console.log($(':contains(Copyright):not(:has(*))'));
Demo: Fiddle