Usage: include the javascript code in your file and include this line in select2 function for a particular select2 dropdown field : matcher: search ...