jquery binding events to dynamically loaded html elements

前端 未结 4 754
你的背包
你的背包 2020-12-06 13:18

using jquery we can attach event handlers to the elements present in page, this is done inside document.ready() function. Now my difficulty is i have some elements like link

4条回答
  •  隐瞒了意图╮
    2020-12-06 13:45

    These answers are now obsolete since the .live() method has been deprecated since version 1.7 of jQuery. For jQuery 1.7+ you can attach an event handler to a parent element using .on()

提交回复
热议问题