diff --git a/README.md b/README.md index f6cb75f..2ec6ab6 100644 --- a/README.md +++ b/README.md @@ -13,3 +13,25 @@ Add package meteor add natestrauser:select2 ``` +## How to use + +Add a specific class in your template for the select element you want to apply Select2 to: + +```html + +``` + + +Enable Select2 for the specific class in the .js file of your template: + +```javascript +Template.MyTemplate.onRendered(function() { + // Enable select2 + $('.select2-dropdown').select2(); +}); +``` + +See also the [Select2 documentation](https://select2.org/). \ No newline at end of file