分享

关于可输入的下拉框(页 1)

 WindySky 2007-01-23
<script>
function get_value(select_value,sort_num)
{
        var obj=document.getElementById("box"+sort_num);
        obj.value=select_value;
}
</script>
<BODY>
<table width="70%" border="0" align="right">
  <tr>
    <td><div style="position:relative;">   
      <span style="margin-left:100px;width:18px;overflow:hidden;">   
            <select id="hoho" style="width:118;height:18px;margin-left:-100px">
                  <option value=‘test0‘ onMouseDown="get_value(this.value,4)">test0</option>
                  <option value=‘test‘ onMouseDown="get_value(this.value,4)">test</option>
             </select>
     </span>
     <input name="box4" id="box4" value="" style="width:99px;position:absolute;left:0px;height:20px;">   
</div>
        </td>
    <td> </td>
  </tr>
</table>
</BODY>

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约