A simple HTMX plugin for automatic element resets after a submitted request.
Included extensions:
reset-always
reset-success
reset-failure
- Download a copy of
reset.js
somewhere into your project - Include it into your HTML
<script src="/path/to/reset.js"></script>
- Add it to your elements
<form hx-post="/somewhere" hx-ext="reset-success"> ...