<select onchange="alert(this.options[this.selectedIndex].value);alert(this.options[this.selectedIndex].text)">

解决方案 »

  1.   

    document.formName.listName.options[document.formName.listName.selectedIndex].value
    document.formName.listName.options[document.formName.listName.selectedIndex].text
      

  2.   

    document.formName.listName.options[document.formName.listName.selectedIndex].value//取得option的value
    document.formName.listName.options[document.formName.listName.selectedIndex].text//显示在屏幕中的text
      

  3.   

    可我怎样确定用户选择的选项的selectedIndex呢
      

  4.   

    用户选择之后,相应的selectedIndex的值就
     成为用户选择的对应项的对应int值