Home > front end >  Consulting for automatic switching focus code problem
Consulting for automatic switching focus code problem

Time:03-17

Wrote a piece of code below, the purpose is to achieve maximum length after word wrap, for example, in 123, the first line of input and then jump to the second line, but as a code to run up, not the bother everybody to help have a look at how to modify the code, thank you

Window. The onl oad=function () {
for(i=0; Len=form. Elements. Length; iIf (the form elements [I] value. The length==form. The elements [I] value, maxLength) {
Form. The elements [I + 1]. The focus ()
}
Return
}
}
</script>
<body>


CodePudding user response:

Brothers statement is correct, the somebody else? How to adjust for you?
You first look at the js related tutorial
  • Related