I have a form which is submitted via Ajax, but which the user may
continue to modify after a submission. The submission causes the
user's work to date to be written to a server-side database - a sort
of mid-form save. However, I now want form.reset to revert to the
point of last save. Currently, if the user hits reset after having
completed a save, the reset function will revert the form to what it
was when the page was originally loaded, which is prior to the last
Ajax save and therefore not accurate.

Is there an easy way to solve this with JQuery?

(I am thinking I could write my own reset function where I store the
entire contents of the form in a document variable, which I can then
update when an Ajax save is successful, but it would be great if there
was an easy solution available).

Thanks
JS, London

Reply via email to