I’ve seen thejQElement.toggle(fn1, fn2, fn3, fn4) would do the trick in case I wanted to click the element. I want it to sequencially fire the events on the tab keydown event.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You trigger
.toggle()by triggering aclickevent, so just trigger that in akeydownevent, like this:Alternatively, just use this same
keyCodecheck and write your own.tabToggle()function, it wouldn’t be difficult if you look at the source for.toggle().You can view a quick
.tabToggle()demo here, adjust if needed, but the concept’s the same as.toggle()already does internally.