需要调用改为调用js
js函数
function setCodes2(){
document.getElementById("county").options.length = 0;
document.getElementById("areacode").value="";
document.getElementById("postcode").value="";
setAjaxOptions('county','getCounties.htm','province',false);
}
With .AddSelect("province","省市","|"+DataTables("行政区域").GetComboListString("省市"))
.Attribute = "onchange=""setCodes2();"""
End With
[此贴子已经被作者于2021/4/20 14:46:43编辑过]