<select onchange="alert(this.value + '你想干啥?')">
  <option value=1>1</option>
  <option value=2>2</option>
  <option value=3>3</option>
</select>

解决方案 »

  1.   

    <html>
    <head>
    <script language =javascript>function changelocation(locationid)
        {
       if (locationid=="空运")
       {
       Q1.style.display="inline";
       Q2.style.display="none";
       }
       else
       {
        Q2.style.display="inline";
    Q1.style.display="none";
       }
        }    
    </script><meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>无标题文档</title>
    </head><body>
    <TR><TD align=right vAlign=center width="14%"><span class="style1"><font size="-1">运输类型</font></span>:</TD>
    <TD vAlign=center width="68%"><form name="form1" method="post" action=""><SELECT  name=mletters size=1 style="font-size:12px;" onChange="changelocation(document.form1.mletters.options[document.form1.mletters.selectedIndex].value)"> 
                          <OPTION selected>选择运输类型</OPTION> 
                          <OPTION value="海运">海运</OPTION> 
                         <OPTION value="空运">空运</OPTION> 
      </select>
            <table width="100%" height="71"  border="0" cellpadding="0" cellspacing="0">
             <tr>
             <td width="35%" id="Q1" style="display:none"><select name="a1" id="a1">
                     <option>空运</option>
                     </select></td>
             <td width="65%" id="Q2" style="display:none"><input name="textfield" type="text" value="海运"></td>
             </tr>
             </table>
    </form>
    </body>
    </html>
      

  2.   

    <form name=form1>
    <select onchange="check_value();" name="vs">
      <option value=1>1</option>
      <option value=2>2</option>
      <option value=3>3</option>
    </select>
    <script language=javascript>
    function check_value(){
       if(document.form1.vs.value==1){
        document.new_script.src="1.js";
        }
       if(document.form1.vs.value==2){
        document.new_script.src="2.js";
        }
    }
    </script>
    <script id=new_script src="">
    </form>现写的没测试过,你自己试试