jquery - How to show percentage when form submit? -


i'm using jquery submit form, how display current percentage of form ?

/* form */  $(document).on('submit','form.formprogress',function(e){      e.preventdefault();      addloading();      var dataform = $(this).serializearray();      var actionform = $(this).attr('action');      var targetform = $(this).attr('data-target');      type: $(this).attr('method');      $(this).find(":input").attr("disabled", true);      $wait = $(this).html('<div class="panel panel-info"><div class="panel-body" align="center"><img src="img/wait.gif"></div></div>');      $(targetform).load(actionform,dataform);      clearloading();      return false;  });  /* form */

you can use pace.js automatically watches page loads , ajax navigation , shows loader.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -