Implement tabs with htmx

I want to implement simple tab functionality with htmx for a Django template. I know of the django_htmx package, but I chose to use htmx directly and I’m now having trouble implementing the tab functionality.

I tried using the example from the htmx website using JavaScript but I’m having trouble, all the prospective tabs are divs on the same page.

Back to Top