select2 check selected value code example
Example: get select2 selected value
//initialize
$('#mySelect2').select2('data');
//get selected value
$('#mySelect2').find(':selected');
//initialize
$('#mySelect2').select2('data');
//get selected value
$('#mySelect2').find(':selected');