1
0
mirror of synced 2024-11-24 05:46:09 +03:00
select2/docs/pages/03.configuration/docs.md

14 lines
255 B
Markdown
Raw Permalink Normal View History

2017-09-03 03:34:47 +03:00
---
title: Configuration
taxonomy:
category: docs
---
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
```
$('.js-example-basic-single').select2({
placeholder: 'Select an option'
});
```