Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

select2 tags set value jquery

$('#mySelect').select2({
  data: ['one','two'],
  tags: true
});
$('#mySelect').val(['one','two']).trigger('change')
 
PREVIOUS NEXT
Tagged: #tags #set #jquery
ADD COMMENT
Topic
Name
6+6 =