Use localstorage to remember input values. Supports textareas and inputs including radio buttons and checkboxes.
var remember = require('remember');
remember()
.except('input[type=password]');
$ component install matthewmueller/remember
This library uses document-level event delegation to capture input. This allows for efficient and "live" bindings. The caveat to this approach is that if you use e.stopPropagation()
within another input binding, remember's bindings will not trigger and the input will not be saved.
Initializes remember and pulls in the previously stored values. Options include:
namespace
: used to namespace the values in localstorage. Defaults toremember:
.
Excludes elements that match the selector.
Clears localstorage
Unbinds all textareas and inputs.
Garlic.js was the source of inspiration for this project and a good reference.
MIT