Answers for "jquery set value to select2"

0

jquery to set value in select2 dropdown button

$("#u20_cre").select2().val(["1","6"]).trigger("change");
Posted by: Guest on January-09-2021
2

select2 tags set value jquery

$('#mySelect').select2({
  data: ['one','two'],
  tags: true
});
$('#mySelect').val(['one','two']).trigger('change')
Posted by: Guest on July-31-2021

Code answers related to "jquery set value to select2"

Browse Popular Code Answers by Language