need ability to specify buttons that should/shouldn't be disabled
options:
disable: boolean,
true, Disable the submit button until the form is valid and all required fields are complete.
I have a form with <input type="submit" value="update"> and a <button type="submit">Cancel</button> (effectively two submit buttons)
The "update" button requires all required fields to be valid. The "cancel" button should not.
Both buttons are currently being disabled.
perhaps
<button type="submit" data-allow-disable="false">Cancel</button>
?
I'll second this one with the exact situation as bkdotcom. I'm unable to exclude the cancel button from being disabled which would seem to be a common scenario.
Can't you make the Cancel button a <button type="button">? It won't be disabled then.
the formnovalidate attribute should be honored
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button
If the button is a submit button, this Boolean attribute specifies that the form is not to be validated when it is submitted. If this attribute is specified, it overrides the novalidate attribute of the button's form owner.