Back

Select2 change value

Copy Below Code View As A Text File Show Text Only Show API Edit Code
                            

$('#mySelect2').val('US'); // Change the value or make some change to the internal state $('#mySelect2').trigger('change.select2'); // Notify only Select2 of changes