Bypass HTML “required” attribute when submitting [duplicate]
No JavaScript, no second form needed, and the validation can stay: For exactly this use case the HTML5 spec has designed the formnovalidate attribute for submit elements (like <input type=submit>), as one of the attributes for form submission: The formnovalidate attribute can be used to make submit buttons that do not trigger the constraint validation. … Read more