Skip to content
saveStorage - jQuery Plugin
Branch: master
Clone or download
Latest commit fbe0933 Jul 11, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
example.html update example.html Jul 3, 2019
savestorage.js update savestorage.js Jul 5, 2019

README.md

saveStorage

saveStorage is a JQuery plugin for easliy save form data

Supported elements:

  • input (text,number,email,password...)
  • radio, checkbox (input)
  • select
  • textarea

Usage:

Include jquery and saveStorage JS file

<script src="jquery.js"></script>
<script src="savestorage.js"></script>

HTML

<form id="myform"> // id required
  <div>
    <label>Name</label>
    <input type="text" name="name">
  </div>
  <div>
    <label>Surname</label>
    <input type="text" name="surname">
  </div>
</form>

initialize saveStorage

$('#myform').saveStorage();

Options:

$('#myform').saveStorage({
    nonSavingInputs: ['password','hidden']  // does not save input types
});
You can’t perform that action at this time.