<option selected>Dogs
<option>Fish
<option>Birdsvalue都是空,没有Change

解决方案 »

  1.   

    那怎么动态改变OPTION的值呢?
      

  2.   

    变量名不要用大写!!!!!!!
    <html>
    <head>
    <Script>
    function swapOptions()
    {
    var e=window.document.the_form.choose_category;
    e.options[e.selectedIndex].text ="8";  
    }
    </script>
    </head>
    <form name="the_form">
    <select name="choose_category" onChange="swapOptions();">
    <option selected>Dogs
    <option>Fish
    <option>Birds
    </select>
    </form>
    </html>
      

  3.   

    谢谢kisslan 那怎么改变OPTION的先后顺序呢?