input-autosave
v1.1.2
Published
Autosave input/textarea values in local storage
Downloads
9
Maintainers
Readme
InputAutosave
Autosaves state of user editable elements in local storage.
Installation
Download
npm install input-autosave
Import to a website
...
<script src="node_modules/input-autosave/index.js"></script>
...
</head>
<body>
...
<input type="text" id="id-1">
<input type="checkbox" id="id-2">
...
<script>
var autosave = new InputAutosave(document.querySelectorAll("input"));
</script>
...
Supported HTML elements
input
checkbox
color
date
datetime-local
email
hidden
image
month
number
password
range
search
tel
text
time
url
week
textarea
- any
contenteditable
element