Select2 Auto-Open in Modal
Budget: $10 – $30 AUD
I have a Bootstrap modal whose body is built on the fly with standard form inputs. One of those inputs is a Select2 control. When the modal becomes visible I want that Select2 to already have keyboard focus and its dropdown list opened automatically, so the user can start typing immediately—no extra click.
Attached is snippet of my code for the modal event listener.
Just to be clear, the modal and form content is working. I just need the select2 to have focus and opened on modal show.
Deliverables
• Select2 with keyboard focus and opened when the modal is visible
Attached is snippet of my code for the modal event listener.
Just to be clear, the modal and form content is working. I just need the select2 to have focus and opened on modal show.
Deliverables
• Select2 with keyboard focus and opened when the modal is visible
Related categories:
JavaScript
CSS
User Interface / IA
HTML
jQuery / Prototype
Bootstrap
Web Development
Frontend Development
jQuery
Web Design