Function removeChildrenIfExist

  • Remove all children elements with given css class name of the given parent element. The children don't have to be a direct child of the parent element.

    Parameters

    • element: null | HTMLElement

      the parent element

    • className: string

      the css class name of the child element

    Returns void

Generated using TypeDoc