scopedSelect function
TOC
Collapse the table of content
Expand the table of content

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:
© 2017 Microsoft