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
The disabled
property only applies to form elements. This means that unless the .btn-move-forward
element is a or
then the
disabled
attribute will have no effect.
You can see a working example using a button
here:
$('.btn-move-forward').prop("disabled", true).click(function() {
console.log('Moving forward...');
})