I'm getting the error "Cannot set property 'innerHTML' of null" with this :
<div id="refresh">Loading ...</div>
<script src="test/js/refresh.js"></script>
refresh.js :
$("#refresh").load("test/ajax/refresh.php");
Why ?
PS: Screenshot of the code, if needed : http://prntscr.com/fpvjuf
And the code : https://hastebin.com/ziqinoyulo.xml