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