onchange on dropdownlist
- by Abu Hamzah
my qeustion is continuation of what i have asked see the link.
http://stackoverflow.com/questions/2640001/load-country-state-city
i have expand to load my drop downs list from db and i just need a way to wire onchange method in my first dropdownlist and second, please see the code. appreciate any help.
$(document).ready(function() {
var options = {
type: "POST",
url: "SearchPage.aspx/LoadCountry",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) {
var returnedArray = msg.d;
list = $("#country");
for (var i = 0; i
{
list.append("" + returnedArray[i].Name + "");
}
error : function(msg)
{
debugger
}
}
};
$.ajax(options);
});
how would i do for STATE dropdownlist ?