I have the following code and it works when submitting the form (It stays on the same page) but I also want that the current page will be refreshed after submission.
<script>
$('form').live('submit', function(){
$.post($(this).attr('action'), $(this).serialize(), function(response){
// Here I need a code to refresh the page. I tried with window.location.reload(); no success...
},'json');
$('form').hide();
return false;
});
Thanks for helping out