方法一:根据ID

 1获得select控件的选择值<select id="abc" onchange="change(this)">   
 2获得select控件的选择值  <option value='1'>1</option>
 3获得select控件的选择值  <option value='2'>2</option>
 4获得select控件的选择值  <option value='3'>3</option>
 5获得select控件的选择值</select>
 6获得select控件的选择值
 7获得select控件的选择值<script type="text/javascript">
 8获得select控件的选择值    function change(obj)
 9

方法二:借助FORM
 1获得select控件的选择值<form id='form1'>
 2获得select控件的选择值<select id='abc' onchange="change()">
 3获得select控件的选择值<option value='1'>1</option>
 4获得select控件的选择值<option value='2'>2</option>
 5获得select控件的选择值<option value='3'>3</option>
 6获得select控件的选择值</select>
 7获得select控件的选择值</form>
 8获得select控件的选择值
 9获得select控件的选择值<SCRIPT LANGUAGE="JavaScript">
10获得select控件的选择值    function change()
11>

相关文章:

  • 2022-12-23
  • 2021-11-17
  • 2021-11-27
猜你喜欢
  • 2022-02-02
  • 2021-08-03
  • 2021-12-01
  • 2022-12-23
  • 2021-11-17
相关资源
相似解决方案