I am using a modified version of the jquery plugin jquery.chained.js to filter out select box options and checkboxes based on another value of a select box. However, now I am needing to filter a select box based on what options 2 of the previous select boxes are.
I have 3 select boxes.
- Staff
- Rooms
- Services
and a few checkboxes OR select boxes for
- Addons
The above addons depends on a preference to either show it as checkboxes or dropdowns
The way it is right now if you change Staff
then the Services
and Addons
options will change to what ever services that staff has access to. However I now need to make it so that Services
and Addons
will set based on what Staff
has access to those Services
and what Rooms
Offer those services.
Is anyone able to help me modify this already modified script to add support for multiple select boxes? I want to try and keep it generic as we may possible be using this chained to script for other elements as well.
To sum up what I am looking for is to add support for Rooms select box to further filter down the Services and AddonServices options.
Example code can be found http://bit.ly/uzEDL2
EDIT: The checkboxradio() is for jquery Mobile so don't worry about those.