I have two examples.
This one is with a normal select2 with static inputs which works with default fields beforehand:
http://jsfiddle.net/z96Ca/2/
Next is a select2 with an ajax call and the default values are not being added into the box - why?!
http://jsfiddle.net/z96Ca/1/
I've been fiddling for a while but can't work out how to add the values beforehand when there's an ajax call as well.
Here's the line that usually adds the code beforehand:
$(test).val([test1,test2]).trigger(change);
Hope I'm clear enough
Thanks a lot