drop down like Country / state and City
<p>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?
Some time its works properly. Following are code snipit
Where Country Drop down always populated but State drop populate base on Country Value and City populate base on State value which from Database. Afterwords i need to set State and City option as Selected
In that getOption() populates option base on country state values. </p>

<pre><code>success: function(json){                    
                    var obj = JSON.parse(json);                                         

                    $("#country").val(obj[0].BUSINESS_COUNTRY); // Always in populated state
                    $("#state").addOption(getOption("#state",obj[0].BUSINESS_COUNTRY),false);// This populates base on country value using getOption method                                         
                    $("#city").addOption(getOption("#city",obj[0].BUSINESS_STATE),false);   //This populates base on State value



                    setTimeout(function() {                 
                        $("#state").val(obj[0].BUSINESS_STATE);
                        $("#city").val(obj[0].BUSINESS_CITY);
                    },400); 
                }
</code></pre>
