.... document.addEventListener('DOMContentLoaded', function () { if (typeof jQuery === 'undefined') return; // 1. Filter Cities based on selected Country jQuery('body').on('change', 'select[name="select-1"]', function () { var countryVal = jQuery(this).val(); // e.g. "CTRY_US" var countryCode = countryVal ? countryVal.replace('CTRY_', '') : ''; var $citySelect = jQuery('select[name="select-2"]'); $citySelect.find('option').each(function () { var val = jQuery(this).val(); // Show placeholder or matching city prefix if (!val || (countryCode && val.startsWith(countryCode + '_'))) { jQuery(this).prop('disabled', false).show(); } else { jQuery(this).prop('disabled', true).hide(); } }); // Reset City & Location choices on country change $citySelect.val('').trigger('change'); }); // 2. Filter Locations based on selected City jQuery('body').on('change', 'select[name="select-2"]', function () { var cityId = jQuery(this).val(); // e.g. "US_NEW_YORK" var $locSelect = jQuery('select[name="select-3"]'); $locSelect.find('option').each(function () { var val = jQuery(this).val(); // Show placeholder or matching city location ID if (!val || (cityId && (val.includes(cityId) || val.endsWith(cityId)))) { jQuery(this).prop('disabled', false).show(); } else { jQuery(this).prop('disabled', true).hide(); } }); // Reset Location selection on city change $locSelect.val('').trigger('change'); }); });

No Results Found

The page you requested could not be found. Try refining your search, or use the navigation above to locate the post.