Auto Save A form Data Using Javascript

You can use the below code snippet for auto saving the form data using JavaScript on a specific interval.

var myInterval = setInterval(function () {
$("#frm").submit();
$("#alertAuto").show();
}, 60000);
<span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_start"></span>

Use the above code where frm is the id of form to post the data. 60000 are the milliseconds, where 1000 milliseconds is 1 second.

This form will submit the data at every minute.

Read More
Show a particular div on Dropdown item Selection Below is the code snippet used to show different Data on the change of dropdown items. You can use the code below and customize it according to you...
Get Query String Value with Jquery & Javascri... Use Below code to get the Query string value from URL using Jquery & Javascript. For example, if someone hits below URL you will get Id value f...
Auto Post Form Data With Ajax at Specific Interval... Below code is used to post form data using Ajax on a specific interval (i.e. 10 seconds). Customize the code as you like and use it in your project. ...
Print A Specific Part using Javascript By using the below code you can print the specific portion of the web using id or class. Just use the below code of javascript to print the portion of...
Related :  Get Query String Value with Jquery & Javascript

Posted by Editorial Staff

We are official editorial team of consult machine. We write articals about ASP MVC, SQL Server , C# And Jquery.