change event now specifies which elements were added/removed
width option now supports various strategies instead of always being copied from the source element
Clicks on a label associated with the source element are now redirected to Select2.
+
val will now only accept ids, if you want to specify the full object for the selection use the new data method instead. val will also now only work on non-selects if initSelection was specified.
An object representing the selection. Should at least contain an id key. The rest of the keys should be determined by the custom rendering function, the default rendering function only needs an additional text key
-
An array of objects representing the selection. null for empty.
+
Id of the object that should be selected. "" to clear. Can only be used if initSelection() was specified.
+
An array of objects ids that should be selected. "" to clear. Can only be used if initSelection() was specified.