$(…).on is not a function - jQuery Error

后端 未结 5 739
旧巷少年郎
旧巷少年郎 2020-12-15 15:34

I am using dialog box, which I am closing when a user click anywhere on page expect that dialog box.

Here is my code:

$(\'body\').on(\'click\',\'.ui-         


        
5条回答
  •  醉酒成梦
    2020-12-15 16:22

    $( ".close" ).bind( "click", function(e) {
    $('#popup1').hide();
        e.stopPropagation(); 
    });
    

    jquery-1.7 jqueryui/1.8.2 perfect.

    or your overlay

    $( ".YOUR OVERLAY" ).bind( "click", function(e) {
    $('#YOUR POPUP').hide();
       e.stopPropagation(); 
    });
    

提交回复
热议问题