Auto save form field inputs using jquery and ajax
问题 I have a form with different input fields.So for very minute , the data entered by the user needs to be automatically stored in the database. Once the request is submitted , it will be directed to the struts file where the database interactions will be carried out . What i have tried, I had set the timeout function to run every time the page is loaded var timer; $(document).ready(function() { timer = setTimeout("autosave()", 60000); }); And in the autosave function , i am trying to post the