I've been searching and searching with no solution. I have this html:
<div class="content_wrap">
<script src="jslib/random_image.js"></script>
</div>
And a link:
<li><a href="javascript:location.reload();" target="_self">Random image</a></li>
But instead of reloading the whole page (lame) I want to either refresh the div (not sure whether it's possible) or at least refresh random_image.js
.
How can you do this with jQuery? Or PHP, or something else?