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);
});