Update DOM after insert in jQuery

后端 未结 3 1774
猫巷女王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:45

    Use live like this:

     $(".view").live("click",function(){
          $(this).parent().load("view");
        });
    

提交回复
热议问题