Returns a reference to the specified HTML element's first parent object whose element name matches the specified value.
Namespace:DevExpress.Web.Scripts
Assembly:JavaScript

Syntax
JavaScript |
function ASPxClientUtils.GetParentByTagName(
element : object,
tagName : String
) : object;
|
Parameters
-
element
-
Type: Object
An object specifying the child HTML element whose parent elements are searched.
-
tagName
-
Type: String
A string value specifying the element name (tag name) of the desired HTML element.
Return value
Type: Object
An object representing the first parent element with a matching element name or a null value if no matching element is found.

See Also