dwrutil.addoptions()怎样获取选中项的值

来源:百度知道 编辑:UC知道 时间:2024/05/17 07:00:45
提交到ACTION的值

有个小例子你看看有用嘛
function getCountries() {
try{

Address.getCountries(function (countries) {

clearCountry();

DWRUtil.addOptions(selCountry , countries, "id", "name");
DWRUtil.setValue(selCountry,defaultCountry);

getStates();
});
}catch(e){
alert("获取市信息时出错" + e);
}
}

已经找到答案