为下拉列表赋值 industry为下拉列表ID
option = document.createElement("option");
option.value = industry1; //industry1值为1
option.appendChild(document.createTextNode(industryname));//industryname值为JAVA
industry.appendChild(option); //这行报错 :意外的调用了方法或属性访问industry1,industry都定义了不知道错在哪了
option = document.createElement("option");
option.value = industry1; //industry1值为1
option.appendChild(document.createTextNode(industryname));//industryname值为JAVA
industry.appendChild(option); //这行报错 :意外的调用了方法或属性访问industry1,industry都定义了不知道错在哪了
解决方案 »
- 密码不可以复制js如何实现
- asp高手帮帮忙.....
- Internet中高级选项卡禁用脚本调试和允许页面转换这两项都选中导致页面不跳转的问题!!
- 关于 calendar 日期控件 问题..请朋友帮助!!
- 如何让页面中的js文件最后才执行,多谢
- 如何在网上实现闹钟程序?
- 请大侠们,推荐几本深入讲解js的经典书籍
- 求大神给个参考代码,input默认显示数值,点击后自动追加
- 100分求助JAVASCRIPT数组问题!
- 100分,求做個1-100累加程序.急!!!
- 有人遇到过在按返回键返回到上一个页面时,却全部丢失了form中的数据的问题吗?奇怪了.我从来没有遇到过!!!
- 一个简单的问题,求指教~~·
objSelect.options[i] = addop; //objselect是select的对象