jQuery :parent Selector
Example
Select all elements that have child elements or contain text:
$("td:parent")
Try it »
Definition and Usage
The :parent selector selects all parent elements that contain child nodes or text nodes.
:parent is the :empty opposite.
An important thing to note is that the child elements involved in :parent (and :empty) include text nodes.
Syntax
$(":parent")
jQuery selector