SyntaxStudy
Sign Up
Home jQuery Reference .find() / .filter() / .not()

.find() / .filter() / .not()

method

.find() searches descendants; .filter() narrows current set; .not() excludes matching elements.

Syntax

$(selector).find(childSelector)

Example

javascript
// Find descendants
$('#nav').find('a');
$('.card').find('img').addClass('img-fluid');

// Filter current set
$('li').filter('.active');
$('input').filter('[required]');

// Exclude elements
$('li').not('.disabled');
$('input').not('[type=submit]');