'How to remove novalidate attribute from form in Woo-commerce checkout
On our site we have an option to Pay by invoice, if the customer chooses this they should be required to add a Purchase Order Number except the validation is not working correctly because of a 'novalidate' attribute on the form. The Purchase order Number field should be required for the form to submit.
I have gone into the file that has the form inside it but I can't see the novalidate attribute which means it must be getting added in pragmatically from somewhere else.
<form id="checkout-form" name="checkout" method="post" class="checkout woocommerce-checkout" action="https://www.donburparts.co.uk/checkout/" enctype="multipart/form-data" novalidate="novalidate">
https://www.donburparts.co.uk/checkout/ Link to our checkout page
Please could somebody advise how I remove this attribute?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
