• Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Precios
    • Pruebas
    • Nómina
    • Blog
    • Comercial
    • Calculadora de salario

0

83
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

9 months 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 empleo Precios Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2023 PeakU Inc. All Rights Reserved.