on reload jquery code example
Example 1: jquery reload page
$('#myElement').click(function() {
location.reload();
});
Example 2: jquery onload event
// A $( document ).ready() block.
$( document ).ready(function() {
console.log( "ready!" );
});
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 page on button click jquery
$('#something').click(function() {
location.reload();
});