Skip to main content
WinJS.Utilities.id function

Applies to Windows and Windows Phone

Returns a collection with zero or one elements matching the specified id.

Syntax


var queryCollection = WinJS.Utilities.id(id);

Parameters

id

Type: string

The ID of the element (or elements).

Return value

Type: QueryCollection

A collection of elements whose id matches the id parameter.

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