您好,欢迎访问一九零五行业门户网

简述两个文本框同时输入的实现方法

下面小编就为大家带来一篇实现两个文本框同时输入的实例。小编觉得挺不错的,现在就分享给大家,也给大家做个参考。一起跟随小编过来看看吧
实例如下所示:
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="zh-cn"> <head> <meta http-equiv="content-type" content="text/html; charset=gb2312" /> <title></title> </head> <body> <script language="javascript"> function copyob1toob2(){ document.all["ob_text_2"].value=document.all["ob_text_1"].value } </script> <input type="text" id="ob_text_1" size=20 onkeyup="copyob1toob2()"> <input type="text" id="ob_text_2" size=20> </body> </html>
以上就是简述两个文本框同时输入的实现方法的详细内容。
其它类似信息

推荐信息