jQuery click event, after appending content

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

Wondering why the example below doesn\'t work?

Load the list

    6条回答
    •  失恋的感觉
      2020-12-05 18:59

      Try this new code, it removes existing click events for the old elements and then adds them again for both the old and new.

      Load the list
      
      

      提交回复
      热议问题