I'm using jQuery validation to make sure all my required fields are filled in, however I was getting a lot of bot spam and want to use something like jQuery Real Person as a captcha system .
How do I combine the 2, so that submit will fail if the captcha field text is not correct? I've already made the captcha field required, now what's the next step?
$("#enroll").validate({ invalidHandler: function(e, validator) { var errors = validator.numberOfInvalids(); if (errors) { var message = errors == 1 ? 'You missed 1 required field.' : 'You missed ' + errors + ' required fields'; $("div.Error span").html(message); $("div.Error").show(); } else { $("div.Error").hide(); } }, });