refresh page ajax jquery js code example
Example 1: How can I refresh a page with jQuery
$('#something').click(function() {
location.reload();
});
Example 2: jquery ajax refresh
function loadlink(){
$('#links').load('test.php',function () {
$(this).unwrap();
});
}
loadlink(); // This will run on page load
setInterval(function(){
loadlink() // this will run after every 5 seconds
}, 5000);