/    Sign up×
Community /Pin to ProfileBookmark

how to get focus directly when i press enter

HI everyone

I have created one form in my website. i have been set tabindex of all textbox. but i want that after typing in last textbox when i press enter the focus automatically directed to submit button.

Please help me

waiting for reply.

Thanx in advance

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@EupseudesJun 15.2004 — To make sure I understood correctly, you want to have the submit button highlighted when you press enter in the last textbox. So, you have a lot of text boxes, if you press enter in one, it goes to the next, and so forth, and so forth? If this is the case, then I have no idea how you coded it that way, since normally the TAB button moves between boxes.

If you want the box to submit on the last box, you will need javascript, and then you posted in the wrong forum/
×

Success!

Help @asifbhura 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.28,
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,
)...