JQuery .load() makes content not clickable after load

后端 未结 3 1678
北海茫月
北海茫月 2021-01-23 16:03

I have a page in which I have a div. The content from that div is being populated by an includes page, and that includes page is making a call to a database to retrieve content

3条回答
  •  [愿得一人]
    2021-01-23 16:59

    it will work with this

    $(document).on("click",".newtask",function(){
    

    or

    $(document).delegate(".newtask","click",function(){
    

提交回复
热议问题