if function is trigger refresh code example
Example 1: jquery reload page
$('#myElement').click(function() {
location.reload();
});
Example 2: page refresh jquery on click
$('#something').click(function() {
location.reload();
});
$('#myElement').click(function() {
location.reload();
});
$('#something').click(function() {
location.reload();
});