Functions
parentByTagName
- parentByTagName(child: Element, tagName: string, maxLevel?: number, currentLevel?: number): Element | false
-
Parameters
-
child: Element
-
tagName: string
-
Default value maxLevel: number = Infinity
-
Default value currentLevel: number = 0
Returns Element | false
Get the nearest parent element by tagName.