I want to create a form with 3 selects within it. The selects will look similar to the following: ‘Please select a city’ ‘Please select an attraction’ ‘Please select a season’
I have a set of cities that contain attractions. Those attractions contain seasons.
When the user selects a city in the first select box, I want the 2 select boxes below to only have options for the city selected in the first box.
It was very easy to get the first select box working.
{{view Ember.Select
content=App.cities
optionValuePath="content.id"
optionLabelPath="content.name"
prompt="Please select a city"}}
I think I want to add an observable on the selects, but I’m not sure what I want to observe. Initially, I thought I might observe cities
, but what I really want observe is a change in selection, so that a filter kicks off in the other selections.
Any ideas on how to proceed on adding some dynamic updating to these selects based off of a selection in the first select?