Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
4+8 =