can someone explain to me how select2 works with Meteor? I am using zimme:select2-boostrap3-css and I have no clue on how to use it.
I checked both the original select2 github page and the one from the package. The first one explains how to use it without Meteor.
Do I just add the jQuery code to one of my *.js-files in order to get it to work?
In HTML:
<select class="input" id="clientName" name="clientName">
{{#each getClients}}
<option value="{{clientName}}" data-id={{_id}}>{{clientName}}</option>
{{/each}}
</select>
In JS:
$("#clientName").select2();
Because this doesn't work.
When loading my page I get this error Uncaught TypeError: $(...).select2 is not a function
.