/    Sign up×
Community /Pin to ProfileBookmark

jump automatic from one entry field to the other

hi!
I’m tring to build a simple crossword in html. [one word in each row, and the first coll giving the anser].
So if someone have a ready-made one – that could help me alot?

but even if not, i’ll be glad to learn how to make the cursor jump after printing one letter in the enty field – to the next entry field in the row?

<td><input type=text maxlength=1></td>
<td><input type=text maxlength=1></td>

thanks!

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@phpnoviceMar 16.2005 — That can only be accomplished with JavaScript.
Copy linkTweet thisAlerts:
@oooritauthorMar 17.2005 — I don't care to use JavaScript!?
Copy linkTweet thisAlerts:
@phpnoviceMar 17.2005 — [i]Originally posted by ooorit [/i]

[B]I don't care to use JavaScript!? [/B][/QUOTE]

I take it you mean, you don't care [u]if you have[/u] to use JavaScript. ?

Basically, you must have code to automatically set the focus to each succeeding field when the current field is full. For example:
<i>
</i>&lt;input type=text name=text1 maxlength=1 onkeypress="
if (this.maxlength &lt;= this.value.length) {
this.form.text2.select();
this.form.text2.focus();
}
return true;"&gt;
×

Success!

Help @ooorit spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.21,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...