摘要: 1.增加option: function addoption(pa0,pa1,pa2)//select控件,option显示的文本,option的value值 { var option = document.createElement("option"); option.appendChild(document.createTextNode(pa1)); option.setAttribute("value",pa2); pa0.appendChild(option); }2.获取选中option: var obj = document.g... 阅读全文
posted @ 2013-12-16 16:22 走路去伦敦 阅读(126) 评论(0) 推荐(0)