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

See also

QueryCollection

 

 

Show:
© 2014 Microsoft