Latest web development tutorials

jQuery: parent Selector

jQuery selector jQuery selector

Examples

Select all <td> element has children and containing text:

$("td:parent")

try it"

Definition and Usage

: Parent Selector select all the elements of the parent element that contains other elements and text nodes.


grammar

$(":parent")


jQuery selector jQuery selector