hasClass method

QueryCollection.hasClass method

Applies to Windows and Windows Phone

Determines whether the specified class exists on the first element of the collection.

Syntax


var boolean = queryCollection.hasClass(name);

Parameters

name

Type: string

The name of the class.

Return value

Type: Boolean

true if the element has the specified class; otherwise, false.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Utilities

See also

QueryCollection

 

 

Show:
© 2016 Microsoft