1. But this not directly work with the Select2 dropdown element. Solve, © 2016 All Rights Reserved • www.itsolutionstuff.com. See also: jQuery Multiple Select Plugin For Bootstrap - Bootstrap Multiselect; jQuery Plugin For Selecting Multiple Elements - Multiple Select; How to use it: 1. var val=selected [i]; console.log (val); obj.find ('option: [value='+val+']').attr ('selected',1); } var valArr = [101,102]; i = 0, size = valArr.length; for (i; i < size; i++) {. Select All by-default. The second one is the text value of the select element. Unlike simple data and UI virtualization, the valueMapper was introduced because the MultiSelect has to maintain and display the selected data item based on the value alone. Select2'' multiple select all. Allows to check/uncheck a group of checkboxes via a master checkbox. I also am using jQuery 1.4.4 as opposed to the 1.3.2 which came bundled with it and everything works just fine. The user populates the right-hand side of the control with some values by clicking the Add button; I have saved those selected values into array. Let's say you render a