javascript - refreshing a div with the <script> tag in it
Get the solution ↓↓↓Solution:
This line removes all child nodes from#refresh
, including embedded script tags:
$('#refresh').empty();
...then this line loads data from the server and places the returned HTML into#refresh
:
$('#refresh').load('...').fadeIn("slow");
The obvious solution is that#refresh
should be empty because its content will be loaded by AJAX. The internalscript
tag should be moved somewhere else.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: invalid argument supplied for foreach() laravel
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.