It was particularly frustrating, because the form input values needed to be formatted precisely.
From that, Form Data Cacher was born.
Right now, it's still very much a proof of concept (it only
<textarea /> and some
<input /> tags), but it's proved useful.
Therefore, I wanted to open source it.
It works by storing some form values in a client's
localStorage, and recalling them when the page
Usage is straight forward: apply a specific class name to
HTMLFormElements, and it'll kick
It's been open sourced, and is available on GitHub.
- Support checkboxes
- Support radio buttons
- Support select inputs
- Listen to DOM changes to kick in for newly inserted forms
- Options for forms with the same name, but across multiple pages