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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:50:53+00:00 2026-05-23T01:50:53+00:00

The short question is: I have a webpage in coldfusion / asp.net with many

  • 0

The short question is: I have a webpage in coldfusion / asp.net with many drop down lists. I want to be able to do an if statement to see if a list has an item selected, and if so grab the value of that item.

Long version:
I have a page that has multiple drop down lists to drill down to a specific location in the country. When you open the page only one or two lists are selectable, the rest are hidden. After an option is selected, the form is submitted and once the form is submitted, the new page loads the old data into the previous lists and unhides a new list, etc etc until all options have been checked. It is storing these variables by way of the url, I am editing it to split up one of the lists into two lists. I cannot add anymore variables to the url.

The way I wanted to do this, was add a drop down list that was hidden until the list above it was chosen, and then using that choice run a sql query to get the data to populate the new list. However, I could not find an easy way to retreive the text in the previous list.

Here is the code for the initial drop down, that once selected I want to populate a new list from.

<select name="siteid" onChange="submitThis('site');">
  <option value="">- SELECT ONE -</option>
  <cfoutput query="getSites">
    <option 
      value="#getSites.siteid#"
      <cfif attributes.siteid eq getSites.siteid>SELECTED</cfif>
    >#getSites.siteDetail#</option>
  </cfoutput>
</select>
  • 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-23T01:50:53+00:00Added an answer on May 23, 2026 at 1:50 am

    Try this tutorial:

    http://www.forta.com/blog/index.cfm/2007/5/31/ColdFusion-Ajax-Tutorial-2-Related-Selects

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

Sidebar

Related Questions

I have a short question. I want do put this \tssr>&\8=f23' into a String
I have a short question. Im my current project I'm using LINQ-to-SQl. That is
I have a short question, let's assume I have a TabBarController with 3 Tabs
I have a short version of the question: I start a thread like that:
I have a very short and straight to the point question. When adding an
Short Question I have a loop that runs 180,000 times. At the end of
Short Question: If I have a Silverlight application built in SL3 can I detect
Short question. I have the following situation: function callbackTest(data, callback) { callback.call(data); } var
Short question you guys: I have a PHP string which may or maybe not
Short question. I have two models: class Author(models.Model): name = models.CharField(max_length=250) class Book(models.Model): title

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.