Update DOM after insert in jQuery

后端 未结 3 1778
猫巷女王i
猫巷女王i 2020-12-21 07:52

Let\'s say I use jQuery to load new content into a specific DIV element. If I now want to catch events from inside that DIV element, I assume the DOM has to be updated someh

3条回答
  •  难免孤独
    2020-12-21 08:33

    jQuery uses "live" events to deal with things happening in dynamically added DOM elements without having to manually add handlers after a content-update.

提交回复
热议问题