jquery refresh page code example
Example 1: jQuery refresh page
$('#myElement').click(function() {
location.reload();
});
Example 2: page refresh jquery on click
$('#something').click(function() {
location.reload();
});
Example 3: php refresh page
header("Refresh:0");
Example 4: how to completely reload page in jquery
// reload page from cache:
location.reload();
// reload page from server:
location.reload(true);
Example 5: reload page jquery
location.reload();
Example 6: refresh div jquery
$("#mydiv").load(location.href + " #mydiv");
//this is actualy not so nice but it does the job.