diff options
author | Michael Grosser <development@stp-ip.net> | 2017-06-28 11:38:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-28 11:38:44 +0300 |
commit | 9b2e2109b20c640564cd38a9ad35f568b2ea9a3b (patch) | |
tree | 55ecd8955328fbc37a3242b1f1b34afc8d65c171 | |
parent | f4bef4e9e0c46f434b7f8b1e8654628736be5fcd (diff) | |
parent | 2fc19851673b7fb2c8408c150065d93e43aeaf75 (diff) |
Merge pull request #17 from stp-ip/upstreamChanges
Revalidate on input change
-rw-r--r-- | static/assets/js/contact.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/static/assets/js/contact.js b/static/assets/js/contact.js index b24132b..ca079ed 100644 --- a/static/assets/js/contact.js +++ b/static/assets/js/contact.js @@ -1,5 +1,12 @@ -// Contact form validation -$( document ).ready(function() { +// Initial form validation +$(document).ready(function() { + $.validate({ + modules : 'html5, toggleDisabled' + }); +}); + +// Revalidate on change +$('form[id=contactForm]').change(function() { $.validate({ modules : 'html5, toggleDisabled' }); |