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