Share via


WinJS.Utilities.hasClass function

Determines whether the specified element has the specified class.

Syntax

var boolean = WinJS.Utilities.hasClass(e, name);

Parameters

  • e
    Type: DOMElement

    The element.

  • name
    Type: string

    The 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