js select2 code example
Example 1: jquery select2
//Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.
Example 2: select2 documentation
$('.js-example-basic-single').select2({
placeholder: 'Select an option'
});