Answers for "get select2 values"

2

get select2 selected value

//initialize
$('#mySelect2').select2('data');
//get selected value
$('#mySelect2').find(':selected');
Posted by: Guest on June-23-2020
1

get value select 2

//get selected value
$('#mySelect2').find(':selected').val();
Posted by: Guest on January-27-2021
1

select2 find option by value

$('#Select2ID option[value="actualVal"]).text()
Posted by: Guest on September-17-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language