below is my code. code works great and validates fine. the minute i include "captcha", it checks to see if the right captcha value is entered, and once that is valid, it stop validating the rest of the form. any ideas how to fix this bug????
is there a way to check the validation for the form again after the right captcha value is entered? thanks
I am using all the plugins from jquery and just a simple form!
<script type="text/javascript">
$(document).ready(function() {
$("#form1").submit(function() {
if ($("#textfield").val() != '') {
return confirm("Are you sure?");
}
});
$("#form1").validate({
rules: {
firstName: "required",// simple rule, converted to {required:true}
lastName: "required",
email: {// compound rule
required: true,
email: true,
remote: "check.php"
},
password: {
required: true,
minlength: 5
},
verify: {
equalTo: "#password"
},
address1: "required",
city: "required",
province: "required",
dob: {
required: true,
date: true
},
captcha_code: {
required: true,
captcha_code: true,
remote: "check.php"
}
},
messages: {
email:{
remote: "This email is already registered! "
},
captcha_code:{
remote: "Enter the right captcha value!."
}
}
});
});
</script>