jQuery('#shipto_country').select( function () {
if (jQuery('#shipto_country') != 'US') {
jQuery('#shipto_method').toggle();
jQuery('#shipto_method').val("AL");
jQuery('#shipto_state').toggle();
}
else { // US is selected
jQuery('#shipto_state').val("");
jQuery('#shipto_state').toggle();
jQuery('#shipto_method').toggle();
}
});
and it returns this:
[select#shipto_country.update_select]
But then when I try to actually trigger the event by selecting a country in the country dropdown, nothing happens. Is there an issue with adding event handlers in the console as opposed to on the page load?