Why this code replace only my billing state default value text and not my shipping state default select value text?
// Replace text in woo checkout
function ea_custom_script_woo_checkout(){
if(is_checkout()){
echo "<script type=\"text/javascript\" >
jQuery( document ).ready(function() {
jQuery('#billing_state option, #shipping_state option').each(function() {
var text = jQuery(this).text();
jQuery(this).text(text.replace('Seleziona un\'opzione…', 'Seleziona una provincia'));
})
});
</script>";
}
}
add_action('wp_footer', 'ea_custom_script_woo_checkout', 90, 1);