tuupola / jquery_chained

Chained Selects for jQuery and Zepto
https://appelsiini.net/projects/chained/
589 stars 283 forks source link

Chaining to multiple parents? #82

Open jinch opened 4 years ago

jinch commented 4 years ago

Hello, I'm trying to get multiple selects to work together but running into some issues. Using your example I understand how to link 2 selects using A+B to show in the last select C. However I'm confused why I can't access the last select by just using the value of the second select ~ like so ~ data-chained="A+B B". What is strange is that you can do this easily with just the first select value ~ like so ~ data-chained="A+B A" *WORKS.

Here is a quick codepen to demonstrate: https://codepen.io/jinch/pen/vYLpLKZ

Ideally it would be great if all three scenarios to work ~ like so: data-chained="A+B A B". I have allot of options and I dont want to have to repeat each combination of the 1st+2nd if possible.