Back

.is( selector )

Is the current set of elements a match to a new selector?

Returns true if at least one of the elements in the current set matches the new selector. Returns false if otherwise.

Params

selector{Selector}A selector expression to match elements against

Returns

true or false

Examples

$('p').is('.foo')