Function toggleClass

  • Toggles css class names of elements found by the given selector(s)

    Parameters

    • selectors2toggle: string | string[]

      one or more css selectors

    • toggleClassNames: string | string[]

      one or more class names to toggle

    • ancestor: Document | Element = document

      an ancestor element for the query selection (default is document)

    Returns void

Generated using TypeDoc