QueryCollection.hasClass method

This topic has not yet been rated - Rate this topic

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

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Namespace

WinJS.Utilities

Library

Base.js

See also

QueryCollection

 

 

Build date: 12/5/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.