设置可以把select 设成可以输入数据

    技术2022-05-11  131

    参考:<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( ... ); }

    哈哈,收藏一个....


    最新回复(0)