[{"id":"e73eb58","elType":"section","settings":{"jet_parallax_layout_list":[]},"elements":[{"id":"8418b9a","elType":"column","settings":{"_column_size":100,"_inline_size":null},"elements":[{"id":"46da0f9","elType":"widget","settings":{"html":"<form>\r\n    <label for=\"resident-country\">Select Your Country of Residence:<\/label>\r\n    <select id=\"resident-country\" name=\"resident-country\">\r\n        <option value=\"\">-- Select --<\/option>\r\n        <option value=\"USA\">United States<\/option>\r\n        <option value=\"Canada\">Canada<\/option>\r\n        <option value=\"UK\">United Kingdom<\/option>\r\n        <!-- Add more countries here -->\r\n    <\/select>\r\n\r\n    <label for=\"applying-country\">Select the Country You Want to Apply To:<\/label>\r\n    <select id=\"applying-country\" name=\"applying-country\">\r\n        <option value=\"\">-- Select Resident Country First --<\/option>\r\n    <\/select>\r\n<\/form>"},"elements":[],"widgetType":"html"},{"id":"83770f2","elType":"widget","settings":{"html":"<script>\r\ndocument.getElementById('resident-country').addEventListener('change', function() {\r\n    const residentCountry = this.value;\r\n    const applyingCountryDropdown = document.getElementById('applying-country');\r\n\r\n    \/\/ Clear existing options\r\n    applyingCountryDropdown.innerHTML = '<option value=\"\">-- Select --<\/option>';\r\n\r\n    \/\/ Define country mappings\r\n    const countryMappings = {\r\n        USA: ['Canada', 'Mexico', 'UK'],\r\n        Canada: ['USA', 'Mexico', 'France'],\r\n        UK: ['USA', 'Canada', 'Germany'],\r\n        \/\/ Add more mappings as needed\r\n    };\r\n\r\n    \/\/ Populate the applying country dropdown\r\n    if (residentCountry && countryMappings[residentCountry]) {\r\n        countryMappings[residentCountry].forEach(country => {\r\n            const option = document.createElement('option');\r\n            option.value = country;\r\n            option.textContent = country;\r\n            applyingCountryDropdown.appendChild(option);\r\n        });\r\n    }\r\n});\r\n<\/script>"},"elements":[],"widgetType":"html"}],"isInner":false}],"isInner":false}]