jQuery not working in AJAX Loaded page

后端 未结 3 1908
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-28 10:29

I am using jQuery to load a page by AJAX using $.ajax (suppose test.html).
Its a simple HTML document with a few buttons and associated animations upon clicking them (a

3条回答
  •  不思量自难忘°
    2020-12-28 11:20

     $("#peopleResult_list").on('click','a', function(event){
        //do you code here  
     });
    

    on event work for current dom in your page and any dom loaded by ajax in the future

提交回复
热议问题