Best way to remove an event handler in jQuery?

前端 未结 20 2364
庸人自扰
庸人自扰 2020-11-21 11:38

I have an input type=\"image\". This acts like the cell notes in Microsoft Excel. If someone enters a number into the text box that this input-image

20条回答
  •  遇见更好的自我
    2020-11-21 11:57

    Thanks for the information. very helpful i used it for locking page interaction while in edit mode by another user. I used it in conjunction with ajaxComplete. Not necesarily the same behavior but somewhat similar.

    function userPageLock(){
        $("body").bind("ajaxComplete.lockpage", function(){
            $("body").unbind("ajaxComplete.lockpage");
            executePageLock();      
        });
    };  
    
    function executePageLock(){
        //do something
    }
    

提交回复
热议问题