onchange on dropdownlist
Posted
by Abu Hamzah
on Stack Overflow
See other posts from Stack Overflow
or by Abu Hamzah
Published on 2010-04-19T15:18:31Z
Indexed on
2010/04/19
15:23 UTC
Read the original article
Hit count: 205
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 ?
© Stack Overflow or respective owner