getAttribute method

QueryCollection.getAttribute method

Applies to Windows and Windows Phone

Gets an attribute value from the first element in the collection.

Syntax


var object = queryCollection.getAttribute(name);

Parameters

name

Type: string

The name of the attribute.

Return value

Type: Object

The value of the attribute.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Utilities

See also

QueryCollection

 

 

Show:
© 2017 Microsoft