$(document).ready(function() { $.setAjaxForm('#ajaxForm', function(data) { location.reload(); }); });