jQuery(document).ajaxStart(function(){ $('').appendTo('body'); }); jQuery(document).ajaxComplete(function(){ $("#sys_modal").hide().remove(); });