/    Sign up×
Community /Pin to ProfileBookmark

Auto Suggest Textboxes

I have read and used the code of Nicholas C. Zakas for an auto suggest textbox from his 3 part series of articles [url]http://www.webreference.com/programming/javascript/ncz/[/url] I have used the code from Example 3b.

However, when I get my dropdown list, I can use my arrows to scroll up or down the list but when I press enter to select my choice from the list, my form is then posted.

If I TAB from the list then the value is selected but most users will instinctively press Enter to select the chosen value. Is there any way that the value can be picked by pressing enter WITHOUT the form being posted at that time since there are more fields to be completed on the form.

Cormac

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @championc 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...