JavaScript reverts custom checkout form placeholder
-
So the docs say I can modify the placeholder for form inputs.
I’m trying to remove “(optional)” from the second address line and move it from the placeholder to the description.
function wc_checkout_fields( $fields ) { $fields[ 'billing' ][ 'billing_address_2' ][ 'placeholder' ] = 'Apartment, suite, unit etc.'; return $fields; } add_filter( 'woocommerce_checkout_fields', 'wc_checkout_fields', 10, 1 );
Some JavaScript keeps reverting it back when the page loads. When I disable JavaScript in my browser, it works.
It seems to only affect fields that rely on the country
<select>
including Street Address, City, State, Zip, etc.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘JavaScript reverts custom checkout form placeholder’ is closed to new replies.