select2 get selected value multiple code example

Example 1: get value select 2

//get selected value
$('#mySelect2').find(':selected').val();

Example 2: select2 multi select get selected value

alert("Selected value is: "+$(".leaderMultiSelctdropdown").select2("val"));

alternatively, if you used a regular selectbox as base, you should be able to
use the normal jquery call, too:

alert("Selected value is: "+$(".leaderMultiSelctdropdown").val());

Example 3: select2 multiple selected values

in_array($value, $array)