input-autosave

1.1.2 • Public • Published

InputAutosave

Build Status

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

Package Sidebar

Install

npm i input-autosave

Weekly Downloads

3

Version

1.1.2

License

MIT

Last publish

Collaborators

  • m1nified