/    Sign up×
Community /Pin to ProfileBookmark

Activate a submit button

This should be simple but I am pulling my hair out . I need to to activate(highlight) a submit button onLoad, So’s the user just has to hit enter when completeing a form.

Any help greatly appreciated.

K

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@gil_davisApr 04.2003 — I need to to activate(highlight) a submit button onLoad, So's the user just has to hit enter when completeing a form.[/quote]You can use focus() on the button, but as soon as the user starts "completeing a form", the focus is lost.

Perhaps what you really want is a way to submit() the form using the enter key. If so, try this link:

http://www.faqts.com/knowledge-base/view.phtml/aid/3946/fid/129
Copy linkTweet thisAlerts:
@KEITHSauthorApr 04.2003 — Many thanks Gil,

That is exactly what I am looking for.

Regards

Kieth
×

Success!

Help @KEITHS 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.18,
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,
)...