Executing [removed] injected by innerHTML after AJAX call

前端 未结 11 1579
误落风尘
误落风尘 2020-11-22 05:02

There\'s a div called \"Content\":

It should be filled with data from a PHP file, by AJAX, including

11条回答
  •  北海茫月
    2020-11-22 05:22

    Another thing to do is to load the page with a script such as:

    This will load the page, then run the script and remove the event handler when the function has been run. This will not run immediately after an ajax load, but if you are waiting for the user to enter the div element, this will work just fine.

    PS. Requires Jquery

提交回复
热议问题