I have a selectize.js dropdown and I have to clear the selected value .
I have tried this (as suggested in another question):
var selectize = $(\"#option
JS:-
jQuery(function ($) { var $select = $('#input-tags').selectize({ persist: false, create: true }); $("#btnClear").on("click", function () { var selectize = $select[0].selectize; selectize.clear(); }); });