Jquery function doesn't work after Ajax call

后端 未结 7 1312
滥情空心
滥情空心 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:43

    class-of-element is the applied class of element. which is selector here.

      $(document).on("click", ".class-of-element", function (){
        alert("Success");
      });
    

提交回复
热议问题