same for me ...
how to use multiple with remote data?
<input type="hidden" id="anRe" name="qwe" value="7,14"/>
and the following parameter
$j("#anRe").select2({
placeholder: "search for ...",
minimumInputLength: 2,
multiple: true,
width: "500px",
remote an multiple is now working :-)
a small problem still exist.
when i start typing "test", the downdown box open with 5 item "test1 test2 test3 test4 test5" thats fine, now i hit the down arrow key to 2 times to move the selection from test1 to test3, but then the spinner shows up and the control reloads and shows the result again with the first item selected, so i am not able to choose any other element then the first element.
what am i doing wrong?
best regards
stefan
Sorry for being a bit vague, I'm using jQuery 1.7.1 (jsFiddle uses 1.7.2), and currently only part of the placeholder is displayed. I found the issue seems to be that width is set explicitly on the input element, and isn't properly resized after setting the placeholder. Line 1605 in select2.js in version 3.0.
Once I focus on the input, then blur, the placeholder displays properly.
Additional note, I don't think there are any placeholders on multiple selects attached to input[type=hidden] on the demo site.
Until you click in the field, the input is not wide enough and the placeholder text gets cut off even if there is room to display it. (Screenshot attached.)