Back

.hasClass( className )

Do any of the matched elements have the given class name?

Params

className{String}A single class name to look for

Returns

True or False

Examples

$('p').hasClass('foo')