By Kevin Brown.
Select2 is licensed under MIT.
Docs maintained by Alexander Weissman.
Hosted by NextGI.
Documentation license: CC BY 4.0.
Built with Grav - The Modern Flat File CMS
To configure custom options when you initialize Select2, simply pass an object in your call to .select2():
.select2()
$('.js-example-basic-single').select2({ placeholder: 'Select an option' });