reload page jquery ajax code example
Example 1: jquery reload page
$('#myElement').click(function() {
location.reload();
});
Example 2: how to completely reload page in jquery
location.reload();
location.reload(true);
Example 3: reload page jquery
location.reload();
Example 4: refresh ajax jquery
function loadlink(){
$('#links').load('test.php',function () {
$(this).unwrap();
});
}
loadlink();
setInterval(function(){
loadlink()
}, 5000);
Example 5: jquery ajax refresh
function loadlink(){
$('#links').load('test.php',function () {
$(this).unwrap();
});
}
loadlink();
setInterval(function(){
loadlink()
}, 5000);