selectize.js : to clear selected value in onChange event
问题 I am trying to clear out the value selected in the onChange event depending on a condition. Whether or not its already present in a selected list. However i am not able to clear of the value using $select[name][0].selectize.clear(); from inside the onChange object. I tried various versions of it , like using the elements id. Please help me with this. $select[name].selectize({ valueField: 'lot_name', labelField: 'lot_name', create: true, options: res, render: { option: function (item, escape)