Select2 Error: Object has no method 'destroy'
I'm getting this error on line 667 of the select2.js script file. It's the
first time select2 is being called on any element on the page.
I'm using version 3.4.2 of the select2 plugin. It's being called on a
element fetched by its id attribute, with no other attributes on the
element.
I'm using jQuery version 2.0.3. I've tried other versions of jQuery with
no success, as well as a few recent versions of the select2 plugin.
Thanks in advance for any assistance.
Edit (showing code):
<select id="my-select">
<option>1</option>
<option>2</option>
</select>
<script type="text/javascript">
$('#my-select').select2();
</script>
No comments:
Post a Comment