jquery.validate plugin – how to trim values before form validation
I did this with success. Instead of: Email: { required: true, email: true } I did this: Email: { required: { depends:function(){ $(this).val($.trim($(this).val())); return true; } }, email: true }