pepebe
8/11/2013 - 5:23 PM

JQUERY: Listen for all form fields and when they change manually set the local storage values. Source: http://www.kc-webdesign.co.uk/web_des

JQUERY: Listen for all form fields and when they change manually set the local storage values. Source: http://www.kc-webdesign.co.uk/web_design_tips_tricks/jquery-html5-localstorage-website-design-kent

$("form").on('change', function(e) {
 var $this = e.target;
 localStorage.setItem(e.target.name, e.target.value);
});