Atkinson can remember form input data across requests, demo.
$ component install yields/atkinson
default selector for form.querySelectorAll()
.
localStorage with fallback to an empty object.
initialize new Atkinson
instance with the given optional
prefix
and form
.
use Atkinson.selector
to find input, textarea, select
and save
their values.
restore saved data, Atkinson will fill out the form.
clean all stored data.
the prefix that was passed to Atkinson
constructor,
this is defaulted to form.id
.
the form
that was passed to Atkinson
constructor.
instance selector string, defaulted to Atkinson.selector
instance store, defaulted to Atkinson.store
MIT