Simple question: how to refresh the selectize options, so that they reflect the updated options in the corresponding select?
wondering this as well. have you found a solution?
var mySelectize = $('#mySelect').selectize(
{
load: function (query, callback) {
this.clearOptions(); // clear the data
this.renderCache = {}; // clear the html template cache
...
});
function refreshSelectize()
{
var selectizeObj = mySelectize[0].selectize;
selectizeObj.onSearchChange('uniqueSearchQueryOrElseCacheWillBeUsed');
}
thanks
Most helpful comment