Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "parentByTagName"

Index

Functions

Functions

parentByTagName

  • parentByTagName(child: Element, tagName: string, maxLevel?: number, currentLevel?: number): Element | false
  • Get the nearest parent element by tagName.

    Parameters

    • child: Element
    • tagName: string
    • Default value maxLevel: number = Infinity
    • Default value currentLevel: number = 0

    Returns Element | false

Generated using TypeDoc