Trying to use Select2 and getting this error on multiple item input/text field:
\"query function not defined for Select2 undefined error\"
I got the same error. I have been using select2-3.5.2
This was my code which had error
$('#carstatus-select').select2().val([1,2])
Below code fixed the issue.
$('#carstatus-select').val([1,2]);