Closed MagnusJohansson closed 7 years ago
This extends the control with the data-callback and data-expired-callback properties. So one can enable/disable a submit button:
@Html.Recaptcha(dataCallback: "capenable", dataExpiredCallback: "capdisable") ... <input type="submit" class="btn btn-default" value="Register" /> ... <script type="text/javascript"> function capenable() { $('input[type="submit"]').prop('disabled', false); } function capdisable() { $('input[type="submit"]').prop('disabled', true); } $(document).ready(function () { capdisable(); }); </script>
Is the callback feature available now?
Looks like this feature is not available in the version 2.1.0
This extends the control with the data-callback and data-expired-callback properties. So one can enable/disable a submit button: