I migrated from chosen to select2 plugin because it works better for me, but its documentation is very poor when compared to chosen. Could anyone tell me what option(s) shou
Select2 4.0.0
function matchStart(params, data) { params.term = params.term || ''; if (data.text.toUpperCase().indexOf(params.term.toUpperCase()) == 0) { return data; } return false; } $("select").select2({ matcher: function(params, data) { return matchStart(params, data); }, });