I created several cascading or dependent drop-down lists using the selected ones, but I used them in addition to knockoutjs. KnockoutJS is used to bind data (in your case, to a selection) to the object and the DOM element. Knockout also allows you to create custom bindings to handle things that they might not have expected right out of the box. With that said, I created a custom knockout binding that Chosen used, and it worked out well ...
In our case, we allow users to select a channel (using the selected one), which we then load at their locations (either by displaying or creating another selection item), and launch our custom binding, which will update the data and launch our custom binding, which will select .trigger("liszt:updated") , but save the data in the background.
Our code is pretty proprietary, and I donβt know that it will definitely show you how to achieve this, but perhaps this will give you another way to look at it.
source share