I have this field at woocommerce checkout:
<input type="text" class="input-text wfacp-form-control" name="zipcode" id="zipcode" placeholder="" value="">
I am trying to fire action, when this field is changed. Code i tried is this:
add_action('wp_head', function() {
if ( is_checkout ) {
?><script>
jQuery('input#zipcode').change(function() {
alert('Changed!')
});
</script><?php
}
});
Unfortunatelly it's not working. Can someone tip me to the right direction? thanks