Advance Select Keeping Previous Options how to remove them and add new options #641
PranayHalder
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
const pickupSelect = window.HSSelect.getInstance('#instantPickupSelect');
const locationSelect = HSSelect.getInstance('#location_id');
locationSelect.on('change', (val) => {
});
This is my code , i want to dynamically add new options according the the location but if keeps all data from the previous options , how to fix it , there is no method mentioned about clearing old options in the docs
Beta Was this translation helpful? Give feedback.
All reactions