我有3个选择:国家,地区,城市,选择一个要更新的国家 /地区选择该国的地区。这是代码。就像逻辑上写的一样。但该地区未更新
$(document).ready(function() {
        $('select[name=ad_country]').change(function() {
            current_country = $(this).val();
            $.getJSON('./core/AJAX/advertisement_changecountry.php', {country: current_country}, 
                function(data) {
                    $('select[name=ad_region]').empty();
                    $.each(data.region, function(key, val) {
                        $('select[name=ad_region]').append('<option value="'+val.id_parent+'">'+val.name+'</option>');
                    });
                    $('select[name=ad_city]').empty();
                    $.each(data.city, function(key, val) {
                        $('select[name=ad_city]').append('<option value="'+val.id_parent+'">'+val.name+'</option>');
                    });
                });
            }
        );
}