addClass method

QueryCollection.addClass method

Applies to Windows and Windows Phone

Adds the specified class to all the elements in the collection.

Syntax


var queryCollection = queryCollection.addClass(name);

Parameters

name

Type: string

The name of the class to add.

Return value

Type: QueryCollection

This QueryCollection object.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Utilities

See also

QueryCollection

 

 

Show:
© 2017 Microsoft