Load Country/State/City
Posted
by Abu Hamzah
on Stack Overflow
See other posts from Stack Overflow
or by Abu Hamzah
Published on 2010-04-14T18:31:46Z
Indexed on
2010/04/14
18:33 UTC
Read the original article
Hit count: 449
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 then based on the select of an country then load the state and same as city....
function populateLists(listType) {
// on success do this:<br>
$.ajax({
type:"POST",
url:"Wizard_Using_PageMethod.aspx/GetCountry",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType:"json"
}
});
[WebMethod]
public static CountryList GetCountry()
{
CountryList country = new CountryList();
///go to db and get the data
return country;
}
© Stack Overflow or respective owner