Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

117
Views
How to enable circular navigation on HTML Select?

I would think this is a pretty basic requirement, but I can't seem to find a single post about this.

I have a simple html select element on my page, when the user presses arrow down, the selection moves very nicely downwards.

What I want to do is that when the user reaches the last option and presses down again, the selection should jump to the first item. and vice versa.

Any ideas?

Thanks!

UPDATE:

Here are my current attempts

<select onKeyDown={(e) => {
var a = 1;
}}
onKeyPress={(e) => {
var a = 1;
}}
>
{options.map((rec) => (
<option
  value={rec.Key}
  key={rec.Key}
  onFocus={() => {
    var a = 1;
  }}
  onKeyDown={() => {
    var a = 1;
  }}
>
  {rec.Value}
</option>
))}
</select>;

none on the events fire

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!