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

0

82
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

7 months ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos