Closed
Description
Hello
I do not want to enable submit unless form is validated. So I set submit do disabled on document ready
and I only want it to be enabled when form is validated.
But my code below is not working.
What am I missing?
Thanks
Bernard
$(".sub").prop('disabled', true);
<script>
$.validate({
modules : 'security, file',
form : '#signup_form , #login_form, #recovery_form',
onValidate : function() {
$(".sub").prop('disabled', false);
}
});
</script>