15 lines
306 B
Markdown
15 lines
306 B
Markdown
---
|
|
title: Initializing
|
|
taxonomy:
|
|
category: docs
|
|
---
|
|
|
|
|
|
To configure custom options, simply pass an object containing all of the options with which you would like to initialize Select2, in your call to `.select2()`:
|
|
|
|
```
|
|
$('.js-example-basic-single').select2({
|
|
placeholder: 'Select an option'
|
|
});
|
|
```
|