Buy Now
Sign in

How to connect select2 dropdown to remote data sourse

tempus , August 11 at 08:01
Hi Greyhead
Please advise me on how to make it work
In form I have dynamic dropdown and the next Custom code on load
​$doc = JFactory::getDocument();​
​$script = "​
​jQuery(document).ready(function(jQ) {​
​ jQ('#dropdown2').select2({​
​ ajax: {​
​ url: '',​
​ dataType: 'json'​
​ }​
​ });​
URL in the code above has a valid json output
How to put this retrieved options to the dropdown?
Hi tempus,
Please check this FAQ
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much