Question: how to get the selected value in select2?
Answer: Below is code for getting selected value. $("#first"). select2('val'); // It returns first,second,three. This is return a text like first,second,three and I want to get 1,2,3 .