Toggle Switch Button using HTMX

is there any method to use Toggle Switch Button with HTMX?

if there, I need to pass a value to another button like my previous question. the Toggle Button is named 'Toggle' and have two (on/off) values and I need to pass them as:

 <button class="btn btn-primary" 
         hx-get="{% url 'plotlybar' %}"
         hx-include="[name='fields'],[name='Toggle']"
         hx-target="#plotlybar">   Plot the bar Well Serv </button>

My previous question

So how to get this Button with HTMX All my best

Back to Top