select2 documentation code example
Example 1: select2
$(".js-example-basic-multiple-limit").select2({
maximumSelectionLength: 3
});
Example 2: select2 documentation
$('.js-example-basic-single').select2({
placeholder: 'Select an option'
});
$(".js-example-basic-multiple-limit").select2({
maximumSelectionLength: 3
});
$('.js-example-basic-single').select2({
placeholder: 'Select an option'
});