<script   language= "javascript "   type= "text/javascript">
//<!--
function isTrue(oCars)
{
//alert(oCars.options[oCars.selectedIndex].text);
 return   window.confirm("确定选 "+oCars.options[oCars.selectedIndex].text)?oCars.options[oCars.selectedIndex].value:'你放弃了!';
 
}
//-->
</script>
</head><body>
<select   name= "test "   id= "test "   onChange="alert(isTrue(this));">
<option   value= "1 "> a </option>
<option   value= "2 "> b </option>
<option   value= "3 " selected= "selected "> c </option>
</select> 
</body>
</html>

解决方案 »

  1.   

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <title> Best wished for u </title>
    <head><script language="javascript" type="text/javascript">
    // <!--
    var index ='c';
    function   isTrue(oCars)
    {
    var result = false;
        result = window.confirm( "确定选"+oCars.options[oCars.selectedIndex].text)?true:(oCars.options[index].selected=true); 
    return;
    }
    //-->
    </script>
    </head><body>
    <select       name= "test"  id=   "test   "  onChange= "isTrue(this);" onclick="index=this.selectedIndex;">
    <option       value=   "1   ">   a   </option>
    <option       value=   "2   ">   b   </option>
    <option       value=   "3   "   selected="selected">   c   </option>
    </select>  
    </body>
    </html>