Hi Guys,
Im using the code below to refresh the contents of a specific div on my webpage. But the problem I'm having is that when it refreshes it removes the contents completly rather than actually refreshing it. Anyone got any ideas on what the problem may be ?
Im using the code below to refresh the contents of a specific div on my webpage. But the problem I'm having is that when it refreshes it removes the contents completly rather than actually refreshing it. Anyone got any ideas on what the problem may be ?
Code:
setInterval(function() {
$("#content").load(location.href+" #content>*","");
}, 10000); //10 seconds to wait, miliseconds