js selecte标签获取选中状态
来源:互联网 发布:光伏数据采集器品牌 编辑:程序博客网 时间:2024/05/01 01:42
代码:$.ajax({type : "POST",url : "/miaolangzhong/manage/forAjax.do?requestType=29",data : "id=" + id, // 发送到服务器的数据success : function(msg) {/*alert(msg);*/var json = eval('(' + msg + ')');document.getElementById("addHDModel").style.display = "block";document.getElementById("id1").value = json.HD.id;document.getElementById("name1").value = json.HD.name;document.getElementById("pinyin1").value = json.HD.pinyin;document.getElementById("max_age1").value = json.HD.max_age;document.getElementById("min_age1").value = json.HD.min_age;/*document.getElementById("system_id1").value = json.HD.system_id;*/document.getElementById("gender1").value = json.HD.gender;document.getElementById("shouxiang1").value = json.HD.shouxiang;document.getElementById("zhusu1").value = json.HD.zhusu;var arrHS=eval(json.listHS);//arrHS是一个数组var checkHS = document.getElementById("system_id1");var str2="";/*遍历所有手诊系统*/for (var j = 0; j < arrHS.length; j++) {str2+="<option value=\""+arrHS[j].id+"\">"+arrHS[j].name+"</option>";var checkHS2=arrHS[j].name;if(arrHS[j].id==json.HD.system_id){arrHS[j].name="selected='selected'";}$("#system_id1").html(str2);}document.getElementById("system_id1").value = json.HD.system_id}});}
0 0
- js selecte标签获取选中状态
- js获取select标签选中的值
- js获取select标签选中的值
- js获取select标签选中的值
- JS获取select标签选中的值
- js获取select标签选中的值
- js获取select标签选中的值
- js获取select标签选中的值
- js获取select标签选中的值
- js获取select标签选中的值
- js获取select选中标签的id
- js获取select标签选中的值
- js获取select标签选中的值
- JS获取Select标签选中的值
- js获取select标签选中的值
- js获取select标签选中的值
- js获取select标签选中的值
- js获取select标签选中的值
- 从面向对象的设计模式看软件设计
- 年终总结(16-17)
- 阿牛的EOF牛肉串 HDU - 2047(递推)
- Execution failed for task ':app:compileDebugUnitTestJavaWithJavac'. (Solved)
- 在大数组中查找
- js selecte标签获取选中状态
- POJ 1001.Exponentiation
- 网络环境查看命令
- 设计模式
- Android 高德地图集成 地图展示+定位+路线规划+各种原有图标的隐藏处理
- 软件许可证License
- 设计模式: Decorator 装饰者(java)
- const 与typedef 共同声明指针
- 子元素在父元素里水平居中