Исходники https://github.com/aishek/jquery-keepFormData

Пример http://aishek.github.io/jquery-keepFormData/