src/public/js/object_functions.js
/**
 * Listener function that gets lazy loads all of the states for a given country.
 *
 * @returns {Promise<void>}
 */
Listener function that gets lazy loads all of the states for a given country.
@returns {Promise}
Listener function that gets lazy loads all of the states for a given country . @returns { Promise }
async function countrySelectionChange(country_id, state_id) {
    const select = document.getElementById(country_id);
    if (select.value !== "") {
        const states = await countries[select.value-1].getStates();
        populateSelect(state_id, states);
    }
}
async function countrySelectionChange ( country_id , state_id ) { const select = document . getElementById ( country_id ) ; if ( select . value !== "" ) { const states = await countries [ select . value - 1 ] . getStates ( ) ; populateSelect ( state_id , states ) ; } }
Listener function that gets lazy loads all of the states for a given country.
Listener function that gets lazy loads all of the states for a given country .