I am using select2 (http://ivaynberg.github.io/select2/) for my tagging input. from the example in using select2 tagging the code is look like this.
$(\"#e1
For Select2 4.0 I had to add the data attribute to select2 and also set value and trigger change, like this:
$('#mySelect').select2({ data: ['one','two'], tags: true }); $('#mySelect').val(['one','two']).trigger('change')