ASPxClientUtils.GetParentByClassName(element, className) Method
In This Article
Returns a reference to the specified HTML element’s first parent object whose class name matches the specified value.
#Declaration
TypeScript
static GetParentByClassName(
element: any,
className: string
): any
#Parameters
Name | Type | Description |
---|---|---|
element | any | An object specifying the child HTML element whose parent elements are searched. |
class |
string | A string value specifying the class name of the desired HTML element. |
#Returns
Type | Description |
---|---|
any | An object representing the first parent element with a matching class name or a null value if no matching element is found. |
See Also