html:
<form id="testform"> <p><input type="text" name="one"></p> </form> js:
$(function () { $('input[name="one"]').change(function(){ $.cookie("one", $('input[name="one"]').val(), {expires: 7}); }); }); Yet when I close the browser and open it the value is not there.