I have chain of drop down like Country / state and City. Is there is any way to wait until the drop down population then proceed further? like first load the country and the
You may do like this
$('#cb_country').change(function(){ var id=$(this).val(); $.get('getCity.php',{id:id},function(data){ $("#cb_city").html(data); }); });
getCity.php:
".$row['CityName'].""; } while($row=mysql_fetch_assoc($Q));