WinJS.Utilities.hasClass function
Determines whether the specified element has the specified class.
Syntax
var boolean = WinJS.Utilities.hasClass(e, name);
Parameters
e
Type: DOMElementThe element.
name
Type: stringThe name of the class.
Return value
Type: Boolean
true if the element has the class, otherwise false.
Requirements
Minimum WinJS version |
WinJS 1.0 |
Namespace |
WinJS.Utilities |