Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WinJS.UI.scopedSelect function

Applies to Windows and Windows Phone

Walks the DOM tree from the given element to the root of the document. Whenever a selector scope is encountered, this method performs a lookup within that scope for the specified selector string. The first matching element is returned.

Syntax


var htmlElement = WinJS.UI.scopedSelect(selector, element);

Parameters

selector

Type: String

The selector string.

element

Type: HTMLElement

The element to begin walking to the root of the document from.

Return value

Type: HTMLElement

The target element, if found.

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

 

 

Show: