實(shí)例如下所示:
<!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>以上這篇實(shí)現(xiàn)兩個(gè)文本框同時(shí)輸入的實(shí)例就是小編分享給大家的全部?jī)?nèi)容了,希望能給大家一個(gè)參考,也希望大家多多支持武林網(wǎng)。
新聞熱點(diǎn)
疑難解答
圖片精選
網(wǎng)友關(guān)注