by sudodevnull · 3mo ago · 0 comments
The very top of the docs (https://htmx.org/docs/) shows how HTMX sends a POST request:
<button hx-post="/clicked"
hx-trigger="click"
hx-target="#parent-div"
hx-swap="outerHTML">
Click Me!
</button>