How to automatically save your Content in HTML Form using Jquery Plugin

In this post I introduce one awesome jQuery plugin to Auto-Save your content when editing in Form.

In this Plugin very helpful when user filling any big form it’s automatically save your form value in local storage (Client Side) So that if user accidentally refresh page then no value will be destroy. When click submit or reset button these values at any time from local storage manually.

Needed Libraries


Include sisyphus.min.js with latest jquery plugin.

Download Files

Created Following sample form which values need to auto-save while filling.

      <title>Auto-Save your Content </title>
      <!-- Latest compiled and minified CSS -->
      <link rel="stylesheet" href="">
      <script src=""></script>
      <!-- Latest compiled JavaScript -->
      <script src=""></script>
      <script src="/sisyphus.min.js"></script>
      <div class="row">
         <div class="col-md-6">
            <form id="autosaveform">
               <div class="col-md-12">
                  <h4>Auto-Save your content when editing in Form</h4>
                  <div class="form-group">
                     <input type="text" class="form-control" name="name">
                  <div class="form-group">
                     <input type="radio" name="gender" value="male" checked> Male<br>
                     <input type="radio" name="gender" value="female"> Female<br>
                  <div class="form-group">
                     <label>Mobile Number</label>
                     <input type="text" class="form-control" name="mobile">
                  <div class="form-group">
                     <input type="text" class="form-control" name="email">
                  <div class="form-group">
                     <textarea class="form-control" name="address"></textarea>
                  <div class="form-group">
                     <button type="submit" class="btn btn-success">Submit</button>
                     <button type="reset" class="btn btn-success">Reset</button>

Call following function on page to activate auto-save feature.

$( function() {
$( "#autosaveform" ).sisyphus()
} );


You May Also Like

Leave a Reply

Your email address will not be published. Required fields are marked *