]> dev.renevier.net Git - syj.git/blobdiff - public/js/contact.js
highlight for input on errors
[syj.git] / public / js / contact.js
index 2f47875e5c74193cb32cbef8bf950eaf4d07c072..1213e6eb5e9c7ef9f04eb11db339a8a5eb3aef39 100644 (file)
@@ -30,7 +30,7 @@ document.observe("dom:loaded", function() {
          * if there are errors, cancel submission
          */
         if (errorElements.length) {
-            errorElements[0].focus();
+            errorElements[0].highlight('#F08080').focus();
             errorElements[0].select();
             evt.stop();
         }