le2.attr("data") === "true" ? "on" : "off"));
}, true)</script></div><div class="docs-example-code-body"><div class="example-code-section"><h3>HTML</h3><div class="qm-code-highlight-codeblock language-html"><pre><code class="qm-code-font"><span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">id</span>=<span class="hljs-string">"toggle1"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"hx-btn hx-btn-toggle"</span>&gt;</span>Toggle Button<span class="hl