I have a problem in a form where I do some jquery validations. If a specific input field is not filled out, it should disable a \"step forward\" button by adding a disabled attr
I am too late by too many year :P Still if someone can get help out of my answer: HTML :
<button type="button" id="verifyBtn" class="disabled" onClick="submitForm(this);"></button>
JS:
To enable
$j('#verifyBtn').addClass('disabled');
$j('#verifyBtn').attr('disabled','disabled');
To disable
$j('#verifyBtn').removeClass('disabled');
$j('#verifyBtn').removeAttr('disabled','disabled');
Please off the click event
$('.btn-move-forward').off('click');