打印本文 打印本文 关闭窗口 关闭窗口
设置可以把select 设成可以输入数据
作者:武汉SEO闵涛  文章来源:敏韬网  点击数612  更新时间:2009/4/23 11:27:16  文章录入:mintao  责任编辑:mintao

参考:
<body bgcolor="000000">
<input type="text" id="bindtxt" name="ctno" style="font-size:12px;width:150px">
<select name="sctno" style="position:absolute; top:expression((bindtxt.offsetTop) + 'px'); left:expression((bindtxt.offsetLeft) + 'px'); width: 150px; height: 18px; clip: expression('rect(2 ' + this.offsetWidth +' 18 ' + (this.offsetWidth - 18) +')');background-color:#ffffff; font-size:12px;">
<option value="0">请选择客户编号</option>
</select>
</body>

实际使用 <input type="text" id="bindtxt" name="ctno" style="font-size:12px;width:150px">

得到输入的内容: bindtxt.value

再把输入的内容插入里面:
bindtxt.onblur = function() {
sctno.options.add( ... );
}

哈哈,收藏一个....

打印本文 打印本文 关闭窗口 关闭窗口