SELECT2 SELECT2 -Wert abrufen
//initialize
$('#mySelect2').select2('data');
//get selected value
$('#mySelect2').find(':selected');
Andrew Lautenbach
//initialize
$('#mySelect2').select2('data');
//get selected value
$('#mySelect2').find(':selected');
$("#u20_cre").select2().val(["1","6"]).trigger("change");
$('#mySelect2').val('1'); // Select the option with a value of '1'
$('#mySelect2').trigger('change'); // Notify any JS components that the value changed
$('#mySelect2').val(['1', '2']);
$('#mySelect2').trigger('change'); // Notify any JS components that the value changed
$('#mySelect2').find(':selected');