Home > Web Front-end > HTML Tutorial > Help~ Why can't type=text of respond to the Enter key? submit_html/css_WEB-ITnose added

Help~ Why can't type=text of respond to the Enter key? submit_html/css_WEB-ITnose added

WBOY
Release: 2016-06-24 12:23:34
Original
1378 people have browsed it

Newcomer, I encountered a problem. Previously, I could respond to the Enter key when I had one input box, but now there are 4 input boxes, and I can’t respond no matter what.

I posted the code, I hope you guys can help!

<style type="text/css">  #check{float: left;width:937px;height:216px;background: url(http://9.pic20.dianzhanggui.net/33402_d26bb2700aa125eaa28db3f84cb441fc/20130820/43261c5032b9b263.png);border:none;    margin: auto;    position:absolute;  }  #checkinput{float:left;border:none;width:326px;height:26px;padding: 0px;color:#333333;font-size:16px;margin-top: 70px;margin-left: 585px;}  #checkbutton{width: 60px;height: 20px;margin-left: 736px;margin-top:11px;border:none;background:url(http://3.pic20.dianzhanggui.net/33402_d26bb2700aa125eaa28db3f84cb441fc/20130820/2e42b9d8c50683f8.png);cursor:pointer;}  #checkbutton2{margin-left:11px;width:60px;height:20px;border: none;background: url(http://4.pic20.dianzhanggui.net/33402_d26bb2700aa125eaa28db3f84cb441fc/20130820/b28c3bf9da9414c4.png);cursor: pointer;margin-top: 11px;position:absolute;}  input {border: #006837 1px solid; BORDER-TOP: #006837 1px solid; FONT-SIZE: 14px; BORDER-LEFT: #006837 1px solid; BORDER-BOTTOM: #006837 1px solid; FONT-FAMILY:"宋体","Verdana"; BACKGROUND-COLOR: #ffffff;text-align: center;}</style><script language="javascript">function fsubmit(obj){obj.submit();}function freset(obj){obj.reset();}function fwm1_onkeyup() {if (document.formQuery.fwm1.value.length == 4) {document.formQuery.fwm2.focus();}}function fwm2_onkeyup() {if (document.formQuery.fwm2.value.length == 4) {document.formQuery.fwm3.focus();}}function fwm3_onkeyup() {if (document.formQuery.fwm3.value.length == 4) {document.formQuery.fwm4.focus();}}//--></script><div id="check"><div id="checkinput"> <form name="formQuery" method="post" action="http://www.88315.org/chinese/checkFWM.asp"><input type="text" language=javascript onkeyup="return fwm1_onkeyup()" maxLength=4 size=4name=fwm1>---<input type="text" language=javascript onKeyUp="return fwm2_onkeyup()" maxLength=4 size=4name=fwm2>---<input type="text" language=javascript onKeyUp="return fwm3_onkeyup()" maxLength=4 size=4name=fwm3>---<input type="text" maxLength=4 size=4 name=fwm4 ></form></div><input id="checkbutton" type="submit"  value=""  onClick="javascript:fsubmit(document.formQuery);" ><input id="checkbutton2" type="button" value="" onClick="javascript:freset(document.formQuery);" ><SCRIPT language=VBscript src="focus.js"></SCRIPT></div>
Copy after login


Reply to the discussion (solution)

Okay~~ I just found out that I made a grammatical error and put the following tag in

is outside. Just pull it in and there you go...

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template