get select2 selected value
snippet in javascript

get select2 selected value

user4074

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