From: Marius Gavrilescu Date: Wed, 18 Feb 2015 17:25:27 +0000 (+0200) Subject: Scroll to top after submit in form.js X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=1e40e2d97db975268d551634df3586a477eb3e6e;p=gruntmaster-page.git Scroll to top after submit in form.js --- diff --git a/js/90-form.js b/js/90-form.js index a326ca8..9391087 100644 --- a/js/90-form.js +++ b/js/90-form.js @@ -13,6 +13,7 @@ xhr.onerror = function() { $('#result').html('Error!'); }; + window.scrollTo(0, 0); $('#result').html('Loading...'); xhr.send(form_data); return false;