DEV Community

mhsohag11
mhsohag11

Posted on

Answer: Select2 doesn't show selected value

add a trigger change after setting val:

$('#my_id').val('3').trigger('change');

Discussion (0)