Bind an event handler on a element who's inserted by the jQuery .html() function

∥☆過路亽.° 提交于 2019-12-01 11:34:28
Jakub Konecki

Try using jQuery.live()


As of jQuery 1.7, the .live() method is deprecated. Use .on() to attach event handlers. Users of older versions of jQuery should use .delegate() in preference to .live().

$("#tagWithHandlerOn").live(event,handler) might just do the trick

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!