select标.docVIP

  • 3
  • 0
  • 约19.68万字
  • 约 17页
  • 2016-12-03 发布于河南
  • 举报
select标

获取select值 获取显示的汉字 document.getElementById(bigclass).options[window.document.getElementById(bigclass).selectedIndex].text 获取数据库中的id window.document.getElementById(bigclass).value 获取select组分配的索引id window.document.getElementById(bigclass).selectedIndex 例子: select name=bigclass id=bigclass onChange=javascript:updatePage2(); option value= selected=selectedajax实验/option option value=4我适宜市哈/option /select 使用 document.getElementById(bigclass).options[window.document.getElementById(bigclass).selectedIndex].text 的结果是:我适宜市哈 使用 window.document.getElementById(bigclass).value 的结果是:4 使用 window.document.getE

文档评论(0)

1亿VIP精品文档

相关文档