vitalets / x-editable

In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
http://vitalets.github.io/x-editable
MIT License
6.51k stars 1.73k forks source link

Select 2 question #1125

Open Boinik opened 5 years ago

Boinik commented 5 years ago

I am just learning. Help me please. How can I load my data into select2? The data I have in this form: http://1473081.tonservi.web.hosting-test.net/select.php [{"id":"us","text":"United States"},{"id":"gb","text":"Great Britain"},{"id":"ru","text":"Russia"},{"id":"ua","text":"Ukraine"},{"id":"fr","text":"France"}] I have already tried everything I can not ( My knowledge is not enough. I need a little example. thank


Я только учусь. Помогите пожалуйста. Как мне в селект2 загрузить мои данные. Данные у меня в таком виде : http://1473081.tonservi.web.hosting-test.net/select.php я уже все перепробовал у меня не получается ( Моих знаний не хватает. Мне нужен маленький пример. Спасибо