It depends on the format in which data about cities and phones is stored. I did this through ajax, my data was in mySQL, the script returned the result of requesting data about the phone from the city table. I had something like this:
$("#city").change(function(){ var newcity = $(this).val(); //берем значение нового города $.ajax({ type: 'POST', url: 'city.php', datatype: 'text', data: {city: newcity}, //передаем значение в скрипт success: function(datacity){ //вставляем новое значение. К примеру: $(this).val(datacity); }; )} });
Something like this :)