The example form below will store values in the form as you type or change them - so that if you refresh the page or navigate away and return, the things you entered will still be there. It clears when the user clears or submits the form, otherwise it will last until the browser window is closed.
The code snippet below will get you where you need to go. Simply include jQuery, jquery.squirrel.min.js, and add a class of squirrel to your form.
For more information and advanced configuration options, head over to the wiki and look it up, or take the time while you're on Github to post an issue or request a feature!
Visit the project on Github for updates or just download the source and dig in!