I'm using jCombo to create a cascading set of select lists, used to set a location for a search.
The problem comes when there's no items returned for an element.
For example-- if you have locations in both the USA and Canada, you create a list of select boxes like "country", "state", "province", "county" etc. just as you see in the demo code.
But there are no states in Canada-- so when you select "Canada" from the Country select list, the cascade dies, since there's no value returned from the state query, rather than just skipping past this value and proceeding with the province select list.
Is there a way to work around this?
I'm using jCombo to create a cascading set of select lists, used to set a location for a search.
The problem comes when there's no items returned for an element.
For example-- if you have locations in both the USA and Canada, you create a list of select boxes like "country", "state", "province", "county" etc. just as you see in the demo code.
But there are no states in Canada-- so when you select "Canada" from the Country select list, the cascade dies, since there's no value returned from the state query, rather than just skipping past this value and proceeding with the province select list.
Is there a way to work around this?