Jquery function doesn't work after Ajax call

后端 未结 7 1313
滥情空心
滥情空心 2020-12-09 12:46

I\'ve got this function:

$(document).ready(function() {
$(\'.post_button, .btn_favorite\').click(function() {


//Fade in the Popup
$(\'.login_modal_message\         


        
7条回答
  •  误落风尘
    2020-12-09 13:34

    The following worked for me

        $(document).ready(function(){ 
             $(document).bind('contextmenu', function(e) {
                if( e.button == 2 && jQuery(e.target).is('img')) {
                  alert('These photos are copyrighted by the owner. \nAll rights reserved. \nUnauthorized use prohibited.'); 
                  return false;
                }
             });
        });
    

提交回复
热议问题