Wanting to be able to have multiple people take a survey then refresh etc. Anyway to store multiple keys to local storage without overwriting the previous? Group by a userID or sorts?
$('form').submit(function() {
$('input, select, textarea').each(function() {
var value = $(this).val(),
name = $(this).attr('name');
localStorage[name] = value;
console.log('stored key: '+name+' stored value: '+value);
});
});
project in whole: http://jsfiddle.net/PVGUq/