I want add some items to a selectized input after user clicks on a button. The input data are loaded via Ajax. When I call addItem(value) no thing happens. But if I try to t
Try This
var $select = $(document.getElementById('Your-element-id')); var selectize = $select[0].selectize; selectize.addOption({value: '2', text: 'test'}); selectize.addItem('2');