Save and restore jqm form

Save and restore jqm form

I have made a form in jquery mobile with radioboxes, checkboxes, tekstfields, multiselect.
I want to save my form data with a save button and want to restore the data with a restore button. I found a great script http://jsfiddle.net/mindplay/yLPY3/
But when I copy it to my form or I convert the script to jqm, ony the textfields are saved and restored. Checkoxes, radiobuttons etc are not saved.
Should such a script work with jqm ? or is there an alternative way to save and restore a compleet form with checkboxes, radiobuttons etc?