🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

formsaver.js is a jQuery plugin for preventing form data loss that saves the current form states into localStorage and restores them anytime as you want.

localStorage

Documentation

jquery.formsaver.js

Easy jQuery plugin for saving and restoring form data into LocalStorage

Usage:

$(".save_button").click(function () {     $("#form_id").saveForm(); });  $(".restore_button").click(function () {     $("#form_id").restoreForm(); });

Live demo here.

Requirements:

  • jQuery 1.0+
  • LocalStorage support (IE 8.0+, Firefox 3.5+, Safari 4.0+, Chrome 4.0+, Opera 10.5+, iOS Safari 2.0+, Android 2.0+)
  • JSON support (IE 8.0+, Firefox 3.1+, Safari 4.0+, Chrome 3.0+, Opera 10.5+, iOS Safari 4.0+, Android 2.1+) or JSON.js library

You May Also Like