I wonder how I can change the focus to the next element(input field in a form) using java script. I believe that it is posible to write a function that can be event triggered in (onkeyup event, maybe ...) when the limit (maxlength="1" in my case) is reached. I'm a "null programer" in java script, so I try to find some help.
I intend to use a java script trick in a input grid (crossword solver), in order to avoid entering the solution letter by letter in the grid.
I'm wonder if it is posible to use somehow the arrows keys to move across the grid.
########################################
the field names are generated automatically by php and looks like:
name="lit_1_2" where 1 is the row and 2 is the col.
A cell looks like:
<td align = "center" style="border: 1px solid #CCCCFF" bgcolor = #ffffff ><input type="text" name="lit_3_1" size="1" maxlength="1" style="border: none; text-align: center; font: normal small-caps bold ;width: 1em" align="middle" ></td>
:sad:
alphabit 0 Newbie Poster
tgreer 189 Made Her Cry Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.