skip to Main Content

Html – Conditional sibling selector in CSS?

I have a <ul> with children <li>. All of the <li> are siblings. I need them all to be siblings so that htmx.takeClass(); works to highlight the active item. My layout is like this: <ul class="list-group list-group-flush" hx-on:click="if (event.target.classList.contains('list-group-item')) htmx.takeClass(event.target,…

VIEW QUESTION

Html – Changing HX-GET using JavaScript doesn't change the result?

I'm looking for help with HTMX. I writing a simple FastAPI app with HTMX and Tailwind and MongoDB database. I have such a form: <form id="currencyForm" hx-get="/currency_history_check/EUR" hx-target="#result" hx-swap="innerHTML"> <select name="currency_id" id="currency_id" onchange="updateFormAction()"> </select> <button type="submit">Submit</button> </form> <div id="result"> </div>…

VIEW QUESTION
Back To Top
Search