Skip to main content

ASPxClientUtils.GetParentById(element, id) Method

Returns a reference to the specified HTML element’s first parent object which has an ID that matches the specified value.

#Declaration

TypeScript
static GetParentById(
    element: any,
    id: string
): any

#Parameters

Name Type Description
element any

An object specifying the child HTML element whose parent elements are searched.

id string

A string specifying the required parent’s ID.

#Returns

Type Description
any

An object representing the first parent element with a matching ID or a null value if no matching element is found.

See Also