Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

144
Vistas
Trigger load on autocomplete suggestion selection

I have an autocomplete form that gives a suggestion for something the user may be looking for for example if I were to type "ca" it would give a suggestion for "car", "cat", "canon" and so on. Right now I can either have the data change as I'm typing (but that takes away from having the autocomplete) using

.on('input', function() {
});

or on change but that requires the user to either click enter or click outside of the text box.

.on('change', function() {
});

Is there a way to have the data load when the user selects the autocomplete suggestion rather than clicking outside the box or while typing? I've looked everywhere and can't find a thing on this. Thank you in advance.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

After some research I found the solution, jQuery has an event listener specifically for this action. I'll link the doc where I found this out below.

.on('autocompleteselect', function() {
});

https://api.jqueryui.com/autocomplete/#event-select

about 4 years ago · Juan Pablo Isaza Denunciar
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 Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda