You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a dropdown with id "selectCountry" filled by ajax and on success I just bind the Selectize.
$('#selectCountry').selectize({
create: true,
sortField: 'text'
});
When I rebind my original dropdown by ajax and try to reload/rebind or refreshed the old selectize auto complete box on success, there would be no change on old list.
Is there any way to reload or refresh selectize dropdown? I had try "clearOptions()" and "refreshOptions()".
P.S, I don't want to directly bind the selectize from ajax.
You should not re-create the Selectize component out of the original tag. You should use it to update its options, using clearOptions() as you guessed.
I updated your fiddle (+1 for making one) to show this: https://jsfiddle.net/m06c56y0/20/
Note: IMHO, this kind of question doesn't really belong to issues of the project, more to Stackoverflow or similar...
closing stale issues older than one year.
If this issue was closed in error please message the maintainers.
All issues must include a proper title, description, and examples.
I have a dropdown with id "selectCountry" filled by ajax and on success I just bind the Selectize.
$('#selectCountry').selectize({
create: true,
sortField: 'text'
});
When I rebind my original dropdown by ajax and try to reload/rebind or refreshed the old selectize auto complete box on success, there would be no change on old list.
Is there any way to reload or refresh selectize dropdown? I had try "clearOptions()" and "refreshOptions()".
P.S, I don't want to directly bind the selectize from ajax.
OK, now I am adding working example for this issue on https://jsfiddle.net/m06c56y0/16/
Please help me :( any suggestion would be great for me. Thanks alot
The text was updated successfully, but these errors were encountered: