Empty Tax ID input field green border
-
Hi there,
I’d like to use your plugin, which by the way works nicely. Thanks for that.
I just have one minor issue. The border color of the input field during checkout is green by default, instead of grey. As if the VAT ID was already validated, but there is no value in the field.
The surrounding <p> tag has the class “woocommerce-validated”. So I tried to remove it after the page has loaded with this code:
$(document).ready(function(){ $(window).on('load', function(){ if ($(".form-row .form-row-wide .validate-eu-vat-number").hasClass("woocommerce-validated")) { $(this).removeClass("woocommerce-validated"); } });
But that doesn’t seem to work, because it is reset immediately.
What am I doing wrong?
Thanks in advance for your help!
Kind regards,
Laurent
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Empty Tax ID input field green border’ is closed to new replies.