Jquery - How to disable the entire page

后端 未结 8 2199
伪装坚强ぢ
伪装坚强ぢ 2020-12-05 19:31

I have this ajax event

function save_response_with_ajax(t){
  var form = $(\'#edit_\'+t);
  var div = $(\'#loading_\'+t);
  $.ajax({
    url: form.attr(\"act         


        
8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-05 20:21

    Try appending an overlay during the "beforeSend" function:

    $("body").prepend("
    "); $(".overlay").css({ "position": "absolute", "width": $(document).width(), "height": $(document).height(), "z-index": 99999, }).fadeTo(0, 0.8);

提交回复
热议问题