jquery select2 value code example
Example 1: get select2 selected value
//initialize
$('#mySelect2').select2('data');
//get selected value
$('#mySelect2').find(':selected');
Example 2: get value select 2
//get selected value
$('#mySelect2').find(':selected').val();