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

191
Vistas
select2 library I want when entering the search input to convert to uppercase letter

If you can help me, I want that when writing in the select2 search box it automatically changes to uppercase I have no code to teach because I have searched and found nothing about it I attach an image

I put the inputs in automatic capital letters with onkeyup and I call the following function and I would like to do it in the select2

 function mayus(e) {
  e.value = e.value.toUpperCase();
 }

example

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

0

You can't use onkeyup property on the select2 search input. You should instead use "event delegation". Try this

$(document).on('keyup', '.select2-search__field', function(e){
    e.target.value = e.target.value.toUpperCase()
});
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