Can anybody tell me how to refresh the current page with JavaScript, having a POST variable modified or added?
To be clear, I want to set some POST variables prior t
There's another way with post instead of ajax
post
ajax
var jqxhr = $.post( "example.php", function() { alert( "success" ); }) .done(function() { alert( "second success" ); }) .fail(function() { alert( "error" ); }) .always(function() { alert( "finished" ); });