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 3498526
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:30:03+00:00 2026-05-18T12:30:03+00:00

I’m implementing a system these days, i want to implement a combo box selection

  • 0

I’m implementing a system these days, i want to implement a combo box selection process but i don’t know how to implement it, so asking you guys favor?

my scenario is this, let’s say we have two combo box selection lists, left one and right one, left one is the main one and the right one is the child of the left one.

when i select a item from the left combo box the right combo box’s content should be changed according to the selection of the left one,

Ex: let’s think about mobile phones, if i select the brand

Nokia

from the left combo box right combo box’s content should be changed to

C6-01
E7-00
5232
X3-02
C1-01
C7-00
5228
C5-03
5250
6120ci
E5-00
E73 

like wise. please help me to implement a this kind of scenario!
any tutorial links, sample codes to understand the scenario is better!

regards,
Rangana

  • 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-18T12:30:03+00:00Added an answer on May 18, 2026 at 12:30 pm

    The trick is do subscribe to the change event and reset the contents of the second box accordingly.

    HTML:

    <select id="brand"> 
        <option value="">- select -</option> 
        <option value="nokia">Nokia</option> 
        <option value="apple">Apple</option> 
    </select> 
    
    <select id="type"></select> 
    

    JavaScript (on ready):

    var selectBrand = $("#brand");
    var selectType = $("#type");
    
    var optionsList = {
        nokia: [
            "C6-01",
            "E7-00"
        ],
        apple: [
            "iPhone 3",
            "iPhone 3G",
            "iPhone 4"
        ]
    };
    
    selectBrand.change(function() {
        var brand = selectBrand.val();
        var options = optionsList[brand];
        var html;
    
        if (options) {
            html = '<option value="">- select -</option>';
            $.each(options, function(index, value) {
                html += '<option value="' + value + '">' + value + '</option>';
            });
        } else {
            html = '<option value="">Select a brand</option>';
        }
        selectType.html(html);
    }).change();
    

    Full example at See http://www.jsfiddle.net/TJJ8f/

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

Sidebar

Related Questions

No related questions found

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.