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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:05:10+00:00 2026-06-09T05:05:10+00:00

I’m trying to create a page where you users have to make multiple selections

  • 0

I’m trying to create a page where you users have to make multiple selections that are based on each other. How do you create a form such that a specific type of dropdown menu #2 appears based on the user’s selection in dropdown menu #1.

For example, lets say a user has to choose a “product category” and a “product subcategory”. If a user chooses “bedding” from the first drop down menu, a second drop-down menu automatically appears with choices like “bed, mattress, pillow”.

To further this example, lets say the user chose “electronics” instead of “bedding.” Then the second-drop down menu would have choices like “tv, mp3 players, computers”.

How would one go about doing something like that? Is it something you would do in HTML/CSS or some other form?

Thanks for the help!

EDIT – I’m using Django / Python to construct this website along with HTML, CSS, and Javascript.

  • 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-06-09T05:05:13+00:00Added an answer on June 9, 2026 at 5:05 am

    You can use a combination of HTML and JavaScript (JSFIDDLE):

    <select id="opts" onchange="showForm()">
        <option value="0">Select Option</option>
        <option value="1">Option 1</option>
        <option value="2">Option 2</option>
    </select>
    
    <div id="f1" style="display:none">
        <form name="form1">
            <select id="opts" onchange="showForm()">
                <option value="0">Select Option</option>
                <option value="1">Option 1A</option>
                <option value="2">Option 1B</option>
            </select>
        </form>
    </div>
    
    <div id="f2" style="display:none">
        <form name="form2">
            <select id="opts" onchange="showForm()">
                <option value="0">Select Option</option>
                <option value="1">Option 2A</option>
                <option value="2">Option 2B</option>
            </select>
        </form>
    </div>
    
    <script type="text/javascript">
        function showForm() {
            var selopt = document.getElementById("opts").value;
            if (selopt == 1) {
                document.getElementById("f1").style.display = "block";
                document.getElementById("f2").style.display = "none";
            }
            if (selopt == 2) {
                document.getElementById("f2").style.display = "block";
                document.getElementById("f1").style.display = "none";
            }
            if (selopt == 0) {
                document.getElementById("f2").style.display = "none";
                document.getElementById("f1").style.display = "none";
            }
        }
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
I'm trying to create an if statement in PHP that prevents a single post
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from
I am trying to loop through a bunch of documents I have to put
I know there's a lot of other questions out there that deal with this
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example

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.