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] |
|
Namespace |
WinJS.Utilities |
|
Library |
|
Build date: 12/5/2012
