Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

277
Visualizações
Focus on select element also opens it: can that be prevented?

Simple, two input interface using a table: each row shows a US state and then a sales tax value. The last row in the table has a dropdown for the state, and a textbox.

When the user commits their entry, I add a row to the table, plug in the values, then I blank both of the controls for the next entry. (An ajax call writes the values to the database, but that's not relevant here.)

The dropdown is first, so after the commit I'd like to put the focus on it, but when I do the dropdown opens. I need that to not happen.

Can I put focus on the select control without it opening?

enter image description here

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda