What is the recommended way to retrieve a Choices object from the original
On page load, I create all of the Choices objects.
At some later time, I want the selection of one dropdown to modify the contents of another dropdown, but I no longer have the Choices object for either of those dropdowns available.
I'm also looking for a solution to this. The method examples rely on each Choices instance existing as a variable - which isn't always possible when initialising multiple instances.
This is now possible as of version 4. If you initiate multiple instances, an array of instances will be returned 馃憤
Thanks, how would this work in practice?
I want to init choices on all selects on the page. Later I want add an event to a button that will find it's closest select, get it's Choices instance and update it's option list
Most helpful comment
Thanks, how would this work in practice?
I want to init choices on all selects on the page. Later I want add an event to a button that will find it's closest select, get it's Choices instance and update it's option list