select2 ajax transport

An alternative transport function can be specified in the ajax settings, or an entirely custom implementation can be built by providing a custom query function instead of using the ajax helper. By default, this transport method is jQuery.ajax but this can be changed. I have added ajax.transport function to default options object as talked in Issue #490. Can an AJAX plugin other than jQuery.ajax be used? It supports searching, remote data sets, and infinite scrolling of results. Select2 uses jQuery's $.ajax function to execute the remote call by default. Docs maintained by Alexander Weissman. Built with Grav - The Modern Flat File CMS. By default, this transport method is jQuery.ajax but this can be changed. For remote data sources only, Select2 does not create a new