-
Notifications
You must be signed in to change notification settings - Fork 298
Description
Hi,
thank you for this great plugin. I have two select on my page and I would like to populate the second one when the user selects something from the first one. So, I need to remove all the old options and to add all the new options( I get them with ajax). I tried to use .remove() and then .add() and also .remove() and then populate, but it doesn't work. Is there a way to achieve what I want?
When I use .remove(), like in your example: $("select").data("selectBox-selectBoxIt").remove(); it removes the selectbox plugin on that select ( I have a select with no options and with the native select box graphics). Even if I remove only one option the graphics turn to normal ( no more selectboxit) and I have this errore: Cannot call method 'show' of undefined
Thank you again.