id method

QueryCollection.id method

Applies to Windows and Windows Phone

Looks up an element by ID and wraps the result in a QueryCollection.

Syntax


var queryCollection = queryCollection.id(id);

Parameters

id

Type: String

The ID of the element.

Return value

Type: QueryCollection

A QueryCollection that contains the element, if it is found.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Utilities

See also

QueryCollection

 

 

Show:
© 2017 Microsoft