You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// https://github.com/garyv/jQuery-Validation-plugin - with email
(function(e){var f={message:"Please fill in all required fields.",emailMessage:"Please enter a valid email address",emailPattern:/\S+@\S+\.\S+/,feedbackClass:"feedback"};e.fn.validate=function(b){b=e.extend(f,b||{});return this.each(function(){var c=e(this);c.bind("submit",function(f){var d=!0,g=!0;c.find("[required]").each(function(b,a){d&&!a.value&&(d=!1,e(a).trigger("focus").fadeOut().fadeIn(),a.id&&c.find('label[for="'+a.id+'"]').fadeOut().fadeIn())});d&&c.find("[type='email']").each(function(f, a){d&&a.value&&!a.value.match(b.emailPattern)&&(d=g=!1,e(a).trigger("focus").fadeOut().fadeIn(),a.id&&c.find('label[for="'+a.id+'"]').fadeOut().fadeIn())});if(!d)return c.find("."+b.feedbackClass).length||c.prepend('<div class="'+b.feedbackClass+'"/>'),c.find("."+b.feedbackClass).html(g?b.message:b.emailMessage).fadeOut().fadeIn(),f.preventDefault(),!1})})}})(jQuery);