htmx gives you access to AJAX, CSS transitions, WebSockets and Server Sent Events directly in HTML, using attributes.
Start collecting data in a matter of clicks.
Let Formspark take care of the servers, databases, and analytics.
Set up any form in seconds.
<form hx-post="https://submit-form.com/your-form-id" hx-ext="json-enc" hx-headers='{"Accept": "application/json"}' hx-swap="none" hx-on::after-request="if(event.detail.successful){this.reset();document.getElementById('thanks').hidden=false}" > <label> <span>Message</span> <textarea name="message"></textarea> </label> <button type="submit">Send</button> </form> <div id="thanks" hidden>Thanks! We received your message.</div>