Skip to content

A simple HTMX plugin adding extensions for automatically resetting forms after a submitted request

License

Notifications You must be signed in to change notification settings

GandelXIV/htmx-reset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

htmx-reset

A simple HTMX plugin for automatic element resets after a submitted request.
Included extensions:

  • reset-always
  • reset-success
  • reset-failure

Installation

  1. Download a copy of reset.js somewhere into your project
  2. Include it into your HTML <script src="/path/to/reset.js"></script>
  3. Add it to your elements <form hx-post="/somewhere" hx-ext="reset-success"> ...

About

A simple HTMX plugin adding extensions for automatically resetting forms after a submitted request

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published