1.1.2 • Published 7 years ago

input-autosave v1.1.2

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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