Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6883545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:23:48+00:00 2026-05-27T05:23:48+00:00

I am using a modified version of the jquery plugin jquery.chained.js to filter out

  • 0

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.

  1. Staff
  2. Rooms
  3. 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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T05:23:48+00:00Added an answer on May 27, 2026 at 5:23 am

    To make child select depend on values of two parents use classname like first\second. Note that if you have really complicated select structure maintaining this kind of classes will get cumbersome. In that cause it might be easier to use the remote version of the plugin.

    Example taken from plugin documentation. In this example diesel engine is available only for BMW 3 and 5 series Sedans. This is achieved by using classnames series-3\sedan and series-5\sedan.

    <select id="series">
      <option value="">--</option>
      <option value="series-3" class="bmw">3 series</option>
      <option value="series-5" class="bmw">5 series</option>
      <option value="series-6" class="bmw">6 series</option>
      <option value="a3" class="audi">A3</option>
      <option value="a4" class="audi">A4</option>
      <option value="a5" class="audi">A5</option>
    </select>
    
    <select id="model">
      <option value="">--</option>   
      <option value="coupe" class="series-3 series-6 a5">Coupe</option>
      <option value="cabrio" class="series-3 series-6 a3 a5">Cabrio</option>
      <option value="sedan" class="series-3 series-5 a3 a4">Sedan</option>
      <option value="sportback" class="a3 a5">Sportback</option>
    </select>
    
    <select id="engine">
      <option value="">--</option>   
      <option value="25-petrol" class="series-3 a3 a4">2.5 petrol</option>
      <option value="30-petrol" class="series-3 series-5 series-6 a3 a4 a5">3.0 petrol</option>
      <option value="30-diesel" class="series-3\sedan series-5\sedan a5">3.0 diesel</option>
    </select>
    
    $("#model").chained("#series");
    $("#engine").chained("#series, #model");
    

    Note that your HTML is not valid. Single number is not a valid class name. Class name must begin with an underscore letter [a–z], underscore [_]or dash [-] then followed by numbers, letters, underscores and dashes. Better explanation can be found from: Allowed characters for CSS identifiers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using a highly modified version of the jqueryFileTree plugin, that is able
I'm using a modified version of JosAH's text-based menu system and am trying to
I'm using jQuery (1.6.4) and using a slightly modified version of this method to
I'm using caml query to select all documents which were modified or added by
So, I'm using the XSLT plugin for JQuery, and here's my code: function AddPlotcardEventHandlers(){
I am using a modified version of light house from this page. I want
I'm using a modified version on juno ( http://github.com/breily/juno/ ) in Google App Engine.
I have a code in javascript and I am using jQuery Calculation plugin (can
I am running a local instance of HTTP::Daemon using a modified version of the
I am using a slightly modified version of the Sun's example JTreeTable backed by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.