I have a button which loads after a ajax call , on clicking i want to reload the page (like i press f5)
I tried
$( \".delegate_update_success\" ).click
If your button is loading from an AJAX call, you should use
$(document).on("click", ".delegate_update_success", function(){ location.reload(true); });
instead of
$( ".delegate_update_success" ).click(function() { location.reload(); });
Also note the true parameter for the location.reload function.
true
location.reload