Select2 4.0.12 code example
Example 1: select2 cdn
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/select2.min.css" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/select2.min.js"></script>
Example 2: select2
$('.js-example-basic-single').select2({
placeholder: 'Select an option'
});