/    Sign up×
Community /Pin to ProfileBookmark

Automatically opening drop down menu using Tab

Hey Guys, I was hoping someone could help me with the following.
I want to be able to open up a drop down menu [B]automatically [/B]– instead of clicking it with the mouse, one should just be able to use the keyboard’s ‘tab’ key. So once a drop down is reached/focused on, using the tab, essentially I’d like it to automatically open up showing the options in the menu and then using the up and down keys on the keyboard to select which option and then selecting it by pressing return.

I’m new to Javascript and am finding it hard to understand how I should go about it.

Any help will be much appreciated,
Cheers

G

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @lu_gsh 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.24,
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,
)...