select2 placeholder through attribute code example
Example: select2 placeholder
$(".js-example-placeholder-single").select2({
placeholder: "Select a state",
allowClear: true
});
$(".js-example-placeholder-single").select2({
placeholder: "Select a state",
allowClear: true
});