• Empleos
  • Sobre nosotros
  • profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
  • empresas
    • Inicio
    • Publicar vacante
    • Nuestro proceso
    • Precios
    • Pruebas Online
    • Nómina
    • Blog
    • Comercial
    • Calculadora de salario

0

189
Vistas
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

almost 3 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recomiéndame algunas ofertas
Necesito ayuda