Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

189
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!