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

  • Home
  • SEARCH
  • 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 3229240
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:47:16+00:00 2026-05-17T16:47:16+00:00

For my website, I need to have a way for users to enter their

  • 0

For my website, I need to have a way for users to enter their cities.

I’d like to use 2 drop-down list for that: a “State” and a “City” drop-down lists. The choices in the “City” list would depend on what “State’ has been selected.

However, there bound to be cases where a user’s “City” is not in the drop-down list. To handle those cases, I want the “City” input to be a “hybrid”: while users could select a choice from a drop-down list, they could also use the input as a textbox and simply type out their city name.

An example of what I have in mind is Google Map. Enter any address into Google Map. Then click on “Directions” on the left panel. Then click the “By public transit” icon (2nd icon from left). The right-most drop-down box is what I’m talking about. You could select choices like “1:00pm”, “1:30pm”, “2:00pm” etc from a drop-down list. But you could also just type out a time like “1:23pm” inside the box.

How do I do something like that? Is there any javascript library/framework that does that? I’m currently using jQuery.

  • 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-17T16:47:16+00:00Added an answer on May 17, 2026 at 4:47 pm

    There are lots of JavaScript examples of this, using JQuery, or native JS. They’re typically called combo boxes – for their ability to select from the drop-down or accept typed entry – most of them including settings to enable free-form entry vs forcing selection from the list only. I don’t have any experience with a specific type, so I won’t make a recommendation, but if you Google “javascript combo box” that’ll get you started in the right direction 🙂

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

Sidebar

Related Questions

I have a website that allows users to login w/ their google account, http://urlme.cc
i want something like this the user enter a website link i need check
I have a website form that collects url of users to store in a
I have an ASP website which I need to add a RegEx match to.
I need to automate a process involving a website that is using a login
For a website that takes input from kids we need to filter any naughty
I am rewriting our company website in cakephp, and need to find a way
On my website, I have a table movies and a table users I'm trying
We are building a training website where we need to track viewers watching videos
I'm a doing some blackbox testing of a ASP.Net website and I need to

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.