Share via


WinJS.UI.scopedSelect function

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