我正在使用JQuery提交表单,如何显示表单的当前百分比?
/* 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 */