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
Post a Comment