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

113
Views
Select2 Not Showing options

I'm updating two websites both built within YII framework, one has the older version installed and has the new version. I'm facing almost similar problem regarding the Select2 plugin. when using ajax pop-up, on the website with the old version the select options don't show and on the one with a newer version - I can't focus on the search field inside the select box.

I have tried using this code that I found everywhere: $.fn.modal.Constructor.prototype.enforceFocus = function() {};

or

<select id="mySelect2">

</select>
$('#mySelect2').select2({
    dropdownParent: $('#myModal')
});

But they don't work

about 4 years ago · Juan Pablo Isaza
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!