.... 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'); }); });

Fill in the form below and we will email you a detailed quote

Fill in the form below and we will email you a detailed quote

Get In Touch

+44 7309 780 702

Email

info@easyrideworldwide.com

Hours

Mon:1300-1800
Tue: 1300-1800
Wed: 1300-1800
Thur: 1300-1800
Fri: Closed
Sat: Closed
Sun: 1300-1800

Send A Message

5 + 6 =