select2 : cannot read property query of null
问题 I have create javascript like this $(document).on("select2:open", ".provider_suggestion", function() { $(this).select2({ minimumInputLength: 2, ajax: { url: "../include/suggestion/provider_name.php", dataType: 'json', delay: 250, data: function(params){ return { q: params.term }; }, processResults: function (data, page) { return { results: data }; }, cache: true } }); }); and create select html input like this <select id="c_providers" name="c_providers" class="provider_suggestion" style=