Jquery .on versus .live

前端 未结 4 479
梦谈多话
梦谈多话 2020-12-09 15:58

I know that .live() is now deprecated but I cannot seem to change it and keep the functionality.

I just have a quick question about the

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-09 16:33

    I somehow guess that you are adding tr elements into your table, not th.

    $('table').on("click", "tr th", function(){});
    

提交回复
热议问题