Below is a sample sourecode snippet that demonstrates how to reload the page using jQuery.
How to Refresh the Page using jQuery?
$('#button1').click(function() {
location.reload(true);
});Below is a sample sourecode snippet that demonstrates how to reload the page using jQuery.
$('#button1').click(function() {
location.reload(true);
});
This does not reloads the page using jQuery, it reloads the page using the native JavaScript location object. You’re using jQuery to just select a button and add an event listener to it.