<select id=oSelect>
...
</select><input type=button onclick=onButtonClick()>
...
function onButtonClick()
{
oSelect.click();
}

解决方案 »

  1.   

    只能用div来模拟实现
    <script>
    function showdiv(w)
    {
    str="<table style='border:1 solid #000000;' width="+w+" cellspacing=0 celpadding=0>";
    for(i=0;i<document.all.mysel.options.length;i++)
    str+="<tr><td style='font-size:10pt' onmouseover=myover() onmouseout=myout() onclick=myclick("+i+")>"+document.all.mysel.options[i].text+"&nbsp;&nbsp;&nbsp;</td></tr>";
    likesel.innerHTML=str+"</table>";
    }
    function myover()
    {
    event.srcElement.style.cursor="default";
    event.srcElement.style.color="white";
    event.srcElement.style.background="darkblue";
    }
    function myout()
    {
    event.srcElement.style.color="";
    event.srcElement.style.background="";
    }
    function myclick(j)
    {
    document.all.mysel.selectedIndex=j;
    likesel.style.display="none";
    }
    </script>
    <body onload="showdiv(mysel.offsetWidth)">
    <select name=mysel onclick="likesel.style.display='none'">
    <option value=11>1111111
    <option value=12>111112
    <option value=13>1111111113
    </select>
    <div id=likesel><div>
      

  2.   

    to :回复人: alexxing(赤铸) 
    不管用啊!!!
      

  3.   

    干脆,mutiple 不就的了
      

  4.   

    又找资料又测试
    折腾了半天
    还是不行!
    我看只有如seabell(百合心) 所说,模拟了
      

  5.   

    http://www.domapi.com/examples/index.cfm看看这个例子