<script>
function mdlist()
{
document.all.fct.innerText="";
}
</script> 
<form id="frm">
<select name="fct">
      <option value="1">ss</option>
      <option value="2">bb</option>
 <select> 
<input type="button" onClick="mdlist();">
</form>

解决方案 »

  1.   

    document.all.fct.options.length = 0;
      

  2.   

    <script>
    function mdlist()
    {
    document.all.fct.options.length  = 0;
    }
    </script> 
    <form id="frm">
    <select name="fct">
          <option value="1">ss</option>
          <option value="2">bb</option>
     <select> 
    <input type="button" onClick="mdlist();">
    </form>
      

  3.   

    嗯,今天学到了两个方法啊... 我之前还一直用这种低效的方法啊,鄙视一下自己
    function clearAll(){
       while (0< document.all.test.options.length) {
           document.all.test.options[(document.all.test.options.length - 1)] = null;
       }
    }