WinJS.Utilities.hasClass function

Applies to Windows and Windows Phone

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 supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.Utilities

Library

Base.js

 

 

Show:
© 2014 Microsoft