jQuery :parent Selector

Last Updated Jul 21, 2015, 12:00:06 PM





jQuery :parent Selector

jQuery parent selector is used to select the elements which has at least one child element

Note, that the a parent element should have at least one child element

Syntax

This is the inverse of jquery empty

Example

Finds all td elements with children, including text.



Output

jQuery parent selector Try It Now
Other Advanced jQuery Selectors you might want to learn
jQuery Complete Selectors Reference

jQuery Selectors

jQuery Basic Selectors

jQuery Child Selectors

jQuery Content Filter Selectors


Sources and Credits

The content and methods in the tutorial has been referred and updated with jQuery API and The jQuery Foundation

Last Updated Jul 21, 2015, 12:00:06 PM