No-Library (pure JS), HTML, CSS, JavaScript
Notes regarding toggling a "disabled" submit button
HTML5 validation attributes can only take you so far. Submit button looks "disabled" until all fields correctly entered.
Setting a custom error message when using the html5 "pattern" attribute
Testing "isDefaultPrevented"
Includes two fields that are only required if either of them has a value. Submit button looks "disabled" until all fields correctly entered.
Simple form, fully satisfied by HTML5 validation attributes. Submit button looks "disabled" until all fields correctly entered.
jQuery (edge), HTML, CSS, JavaScript
jQuery 3.3.1, HTML, CSS, JavaScript
Don't do this, but if you do, here's how to tell which button was clicked.
How to grab all elements of a form (jquery and vanilla)
No-Library (pure JS), HTML, SCSS, JavaScript
product logos using svg icons (symbol, use)
product logos directly embedded as svgs (no <use>)
jQuery 1.9.1, HTML, CSS, JavaScript