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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:28:07+00:00 2026-06-17T17:28:07+00:00

I want to have 3 dropdown lists going like Select:State Select City Select: Restaurant

  • 0

I want to have 3 dropdown lists going like

Select:State
Select City
Select: Restaurant

When the first dropdown list has an item selected, the “Select City” list is updated, and when the second dropdown list has an item selected, the last one is updated.

I am stuck between 3 approaches:

  1. Using Javascript to put in all possible values. And using form onchange to invoke the update method.
  2. Prepopulate dropdown from database (MySQL).
  3. A hybrid of the first two – first 2 with Jscript, last one from database.

Now how does the performance and pros/cons of each approach for hosting, VPS and PAAS compare?

  • 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-17T17:28:08+00:00Added an answer on June 17, 2026 at 5:28 pm

    For the sake of usability I would update the select boxes using Ajax calls.

    Another benefit from choosing this approach would be that your application logic is mostly kept server side, which in most cases is easier to write tests for.

    You could populate the first select box by querying in your view and passing the results down to your template. If you disable the other 2 select boxes you can active/populate them after the 1 one is selected through an ajax call.

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

Sidebar

Related Questions

I have a dropdown list in which I select how many people are going
I have a drop down list and I want the selected value to put
I want to have a drop down box that has a list of different
I have some html that creates a dropdown list. The list has text values
I have 5 dropdown lists and I want to have a tooltip on each
I have 3 dropdown lists. 1) Type 2) Duration 3) Class <select name=passenger_type_of_pass class=pass>
I have a dropdownlist.I want to add selected value of it to a hyperlink
Hi I have two dropdown menus: priceMaximum and mortgageMaximum I want it so if
In Django's admin, I want disable the links provided on the select item to
i have a form created with some textboxes and dropdown lists, they are updated

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.