Select2 data from database

1,841 views
Skip to first unread message

Björn C

unread,
Aug 5, 2014, 8:34:58 AM8/5/14
to sel...@googlegroups.com
Im trying and trying but can´t get a working dropdown.
 
Can someone point me to an example of files (html, js & php) or code where
you load data from database with ajax,json,php and populate the select2 dropdown menu.
 
The examples with loading remote data is to thin.. i dont understand how to build the .php
 

Nathan Moore

unread,
Aug 21, 2014, 4:14:13 PM8/21/14
to sel...@googlegroups.com, in...@bjornc.se
You may have already reviewed this tutorial, but I was in the same boat about two weeks ago and was able to get a php/ajax/json demo working end to end with mysql.

http://www.southcoastweb.co.uk/jquery-select2-ajax-tutorial/

takunda...@gmail.com

unread,
Dec 11, 2015, 10:18:10 PM12/11/15
to select2, in...@bjornc.se
hi reload select2.min.js
Reply all
Reply to author
Forward
0 new messages