Getting started with Select2 JS Auto Complete Input Field Tutorial

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Hi ..somebody help me out..i will get the options list from ajax call ..how to select the first value say the list sorted in ascending and make it as default value for the select2 option

Dj-jhdy
Автор

Hi..
Need your assistance...
I have set Minimumlengthlimit as 1.
When someone searches it makes an ajax call and shows the data..
But what i want is when I open the dropdown first time, I want to show my list saved in variable, now its asking me to type 1 character which is my Minimum limit...

mominwasae
Автор

how can you add new options to the final json from the search box? thanks a lot!

Camaro-itht
Автор

But i have an issue select 2 is not working in modal box

muhammadhamza
Автор

Hi Sir, thanks for sharing.How to make select2 as a global directive. example I am using api's to get data in search dropdown and every time I have a hard code url. How to pass different URL for different API's in ajax for common select2 directive.

syedamjad