|
-
- var c_cigy = '';
-
- var cityItemName = '';
-
- function changeCityOyp(province,city,relateItemName) {
- ServerDwrUtil.getCityList(province.value,setCityOption);
-
- cityItemName = relateItemName;
-
- if(province.value == '0001') {
- document.getElementById(cityItemName).disabled = true;
- } else {
- document.getElementById(cityItemName).disabled = false;
- }
-
- var provinceInput = province.parentNode.firstChild;
-
- if (province.value == '') {
- provinceInput.value = '';
- return;
- }
- provinceInput.value = province.options[province.selectedIndex].text;
-
- }
-
-
-
- function setCityOption (args) {
- alert(args.toString());
- DWRUtil.removeAllOptions(cityItemName);
- DWRUtil.addOptions(cityItemName, [ "" ]);
-
- DWRUtil.addOptions(cityItemName, args, "id", "name");
- }
|