Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
jQuery

Children in jQuery

Get direct child elements with children(); use find() for descendants.

Children in jQuery — a practical guide to jQuery children with clear examples you can reuse in real projects.

jQuery Tutorial Series (48/101). Prefer one article? Read the complete jQuery tutorial.

Short description

children(selector) filters direct children only.

children

$('#menu').children('li');
$('#menu').find('a'); // all descendant links

Leave a reply

Your email address will not be published. Required fields are marked *