jQuery click event, after appending content

后端 未结 6 2040
庸人自扰
庸人自扰 2020-12-05 18:21

Wondering why the example below doesn\'t work?

Load the list

    6条回答
    •  囚心锁ツ
      2020-12-05 18:47

      From jQuery 1.7 you can use the .on() handler to bind the newly created element ot the 'click' event:

      
      

      (this is with the original example).

    提交回复
    热议问题