Skip to content

Tag: jquery-select2

Select2 V.4: Search box is not got focus on open

I using select2 for my project for the first time, and I thought I met many of my project requirements. However, one thing it was not is on their search box. When I click on select2 element, the dropdown was opened but I could not type anything in their input box unless I click on their search. Here is my

capturing enter key in select2

I’m using select2 to present an editable selectbox. When user writes a statement which does not appear in the list(select2, data), I show a button to add this statement to the list. Forcing users to click the button seems to me a little bit frustration. Is it possible to capture enter key in select2? I …

Select2() is not a function

So i have downloaded select2 i have “installed it” by putting it into my folder and then loaded it on my site when i check the console (where i can see all of the scripts being loaded) i can see the file select2.js I went to their documentation and copied it and added $(“#e9”).select2(…