参考:<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( ... ); }
哈哈,收藏一个....
Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved. 闵涛 E_mail:admin@mintao.net(欢迎提供学习资源)
鄂公网安备 42011102001154号
站长:MinTao ICP备案号:鄂ICP备11006601号-18