Skip to content
Advertisement

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

Select2 Closes Modal on Clicking it

I have 7 SELECT2 Elements on my Modal, at first, I was unable to search on the select2 elements. I then added this line of code when I’m about to show the Modal $(‘#my-select’).select2({ dropdownParent: $(‘#my-modal’) }), and I was able to search on the select elements. Now the problem is sometimes when I click on one of the options

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 want to make user able

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(); However when i load the page

Advertisement