How to remove an element that is added dynamically in Javascript

前端 未结 5 1274
鱼传尺愫
鱼传尺愫 2020-12-28 16:40

I have the following code to create some element:

<
5条回答
  •  时光说笑
    2020-12-28 17:18

    You can use the .live for this:

    $('body').live('click','#idDinamicElement', function(){
       // your code here
    });
    

提交回复
热议问题