I have a form (autocomplete='on') that contains a text input
<input type='text' name='code' />
When this form is submitted using $.ajaxSubmit() from jQuery Form Plugin, the value of the textbox is not getting cached by browsers.
Is it possible to somehow cache the values natively to a browser, so users can see their previous values when they start typing?
At your first ajax call, make a cookie and store code into it, then in every other ajax calls, check if cookie(code) exist just print that value into your form field.
Here is a good tutorial for Javascript Cookies