Jquery 'click' not firing when icon is on button

前端 未结 3 1262
Happy的楠姐
Happy的楠姐 2021-01-19 14:17

I use Bootstrap and jQuery. I have three buttons, each with an icon in it. When I bind an click-event to a button, it works when I cli

3条回答
  •  生来不讨喜
    2021-01-19 14:48

    Use the following syntax for .on()

    $(document).on('click','btn_change_status', function(e) {
       //write your code here
    });
    

提交回复
热议问题