javascript - Using ReCaptcha with jquery Validation Script -
i have form utilizes query.validate.js perform field validation before submitting form. works, i'm trying recaptcha 2.0 (the cool 1 click button). however, form being submitted without checking recaptcha box. i'm assuming conflicting each other somehow?
<head> <script src='https://www.google.com/recaptcha/api.js'></script> </head> <form id="register" name="register" action="ce/ce_register_process.php" method="post" > <p>field:<br/> <input id="field" size="40" name="field" type="text" required> </p> <div class="g-recaptcha" data-sitekey="xxx"></div> <input type="submit" value="enter"> <script type="text/javascript"> $().ready(function() { $("#register").validate({ rules: { first: "required", last: "required", password: { minlength: 5, required: true }, password2: { minlength: 5, required: true, equalto: "#password" } } }) }); </script>
Comments
Post a Comment