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

333
Views
How to modify select2 serach box text on keyup?

I'm trying to change the text of select2 search box on keyup event.

Suppose whenever we will write a Bangla digit it will automatically convert into an English digit

<div class="form-group col-md-3 col-sm-12">
    <label for="">Select Number</label>
    <select name="number" id="number" class="form-control select">
        <option value="1"  selected  disabled>Select Number</option>
        <option value="2" >123654</option>
        <option value="3" >654564</option>
        <option value="4" >879871</option>
        <option value="other">Other</option>
    </select>
    <span id="error_name" class="has-error"></span>
</div>
$(".select").select2();
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

you can convert in event this:

$('#mySelect2').on('select2:select', function (e) {
    var data = e.params.data;
    console.log(data);
});
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!