Is there any way I can remove an item from Selectize?
Here is my a sample list:
- AMNT
- QTY
- NA
When I pass NA it should remove particular item:
$.fn.removeSelectorValue = function (value) {
var selectize = this[0].selectize;
selectize.removeItem(value);
return this;
};
This is not working. Can anyone help me with this?
removeItemremoves selected item identified by given value. To remove option from the list you should useremoveOptionExample - open http://brianreavis.github.io/selectize.js/, open console and enter:
to remove Chuck Tesla from available options