2017-09-03 03:34:47 +03:00
|
|
|
---
|
|
|
|
title: Configuration
|
|
|
|
taxonomy:
|
|
|
|
category: docs
|
|
|
|
---
|
|
|
|
|
2017-09-04 05:23:13 +03:00
|
|
|
To configure custom options when you initialize Select2, simply pass an object in your call to `.select2()`:
|
2017-09-03 03:34:47 +03:00
|
|
|
|
2017-09-04 05:23:13 +03:00
|
|
|
```
|
|
|
|
$('.js-example-basic-single').select2({
|
|
|
|
placeholder: 'Select an option'
|
|
|
|
});
|
|
|
|
```
|