Even with Select2 4.0.0 we're seeing this error. As per the announcement we're no longer adding the input element.
html :
javascript :
$('.select2').select2({
minimumInputLength:2,
placeholder: $(this).attr('data-placeholder'),
ajax: {.....
Update :
Still works with <input type="hidden" class="select2" />
Is the documentation correct ? or am I missing something ?
p.s: select2 was installed today via bower
Ok.. marking this as resolved.
There was an older version of select2 which was was conflicting here.
Resolved.
The above link was dead! (http://itfrustration.in/jquery-select2-ajax/)
Please give another example
Above link is spammer I think.