Skip to content
Tuto htmx logo
Tuto htmx (2022-10-25 16H (Europe/Paris)) HTMX JS reference api
Type to start searching
Tuto htmx
  • Index
  • htmx
  • Tuto HTML
  • Tuto hyperscript
  • Tuto Django
  • HTMX reference
Tuto htmx
  • htmx
  • HTMX news
  • HTMX definition
  • htmx people
  • HTMX essays
  • HTMX philosophy
  • HTMX docs (AJAX, CSS transitions)
  • HTMX reference
    • HTMX reference attributes
    • HTMX JS reference api
      • Show Source
      • htmx.addClass() (adds a class to the given element)
    • HTMX events
    • src/htmx.js
  • HTMX extensions
  • HTMX examples
  • HTMX Tips
  • HTMX FAQ
  • Htmx tutorials
  • HTMX versions
  • Backends
  • Backends applications (Django, FastAPI…)
  • Front end
  • Front end (Javascript)
  • intercooler the htmx ancestor
  • intercooler.js (htmx ancestor)
  • Meta
  • Meta
  • Show Source

HTMX JS reference api ¶

  • https://htmx.org/reference/#api

  • htmx.addClass() (adds a class to the given element)
    • Description
Previous HTMX hx-ext attribute (enables an htmx extension for an element and all its children)
Next htmx.addClass() (adds a class to the given element)
© Copyright 2021-2022, DevOps people Built with sphinx 5.3.0 Python 3.11.0.
Last updated on Oct 25, 2022.
Created using Sphinx 5.3.0. and Material for Sphinx