Add HTMX to your project in seconds and build modern, dynamic web apps with simple HTML.
Add the following script tag to your HTML, just before the closing </body>
tag:
<script src="https://unpkg.com/htmx.org@2.0.4"></script>
With HTMX, you can make AJAX requests using simple HTML attributes. For example:
<button hx-get="/hello" hx-target="#result">Say Hello</button>
<div id="result"></div>
When the button is clicked, HTMX will send a GET request to /hello
and replace the contents of #result
with the response.
click
for buttons).