Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comment #1
sonSticks CreditAttribution: sonSticks commentedTry this
$('#edit-field-address-und-0-country').trigger('change');