using javascript, it's easy to change the country, say, from Canada to United States. but having trouble triggering the ajax on the country field. expecting the administrative area selection to change from the 13 provinces to the 60+ states/territories but nothing happens. what's wrong with this code?

$('#edit-field-my-address-und-0-country').val('US');
$('#edit-field-my-address-und-0-country').trigger('change');

Comments

sonSticks’s picture

Try this $('#edit-field-address-und-0-country').trigger('change');