When defining a default placeholder, I expect to be able to override it with custom attributes. I initialize the control like this:
$(".select2control").select2({
placeholder: {
id: "-1",
text: "--Select something (default placeholder)--"
},
});
When I set the attribute data-placeholder--text on one of all selects on the page, it will globally replace all placeholders of all selects.
Please see this fiddle to see what happens
https://jsfiddle.net/2xt0ohvv/