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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T19:54:41+00:00 2026-05-15T19:54:41+00:00

I have a dropdown which you choose one of three values <select id=FilterType name=FilterType>

  • 0

I have a dropdown which you choose one of three values

<select id="FilterType" name="FilterType">
  <option value=''>All</option>
  <option value="LanCode">Lan Code</option>
  <option value="SupportTeamName">Support Team</option>
</select>   

based on what the user chooses another dropdown is created beside that one
it will have a bunch of <option value="8">Something</option> then the user submits the form back to itself

I have written a function to set the first dropdown to the submitted value and then repopulate the second dropdown according to the submitted value and then select the item in the dropdown passed to the page…

$('#FilterType').find("option[value*='<%= Request.QueryString("FilterType") %>']").attr('selected','selected');     
getFilter();
$("#<%= findselect %> option[value='<%= findoption %>']").attr('selected',true);

Now the problem is I can’t seem set the item selected in the second dropdown. I guess it’s because the page is loaded and then the second dropdown is created

How can I set the second dropdown to the value submitted?

  • 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-15T19:54:42+00:00Added an answer on May 15, 2026 at 7:54 pm
    • You can move your “select logic” and
      put it right next the “create logic” CreateSecondDD(); SelectSecondDD();

    • Another thing you can do is move your
      “select logic” just after the end of
      the tag, this way the script
      will be called just after page
      finishes reloading. </body> <script> SelectSecondDD(); </script>

    But what i really recommend you to do is, when creating DOM for the Second Dropdown, always check the value from first DropDown, and apply the required selected attribute.

    This task is quite easy using jQuery DOM plugin.

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

Sidebar

Related Questions

I have the following drop down: <select name=chooseLanguage> <option>Choose One</option> <option value=java>Java</option> <option value=php>PHP</option>
I have dropdown-Lists which have a lot of elements (>1000). When I select one
I have a simple dropdown menu with some options eg: <select name='music_style' id='palmsForm-music_style'> <option
I have dropdown menu..which is dynamic.. How can get value of the last item
I have a dropdown in my webpage, which always returns the value 0 as
I have a little dropdown menu similar <select> , which contolled from external js-function.
I have this HTML code which simulates a dropdown multi-checkbox <div> <div class=select> <span>Select
Hey, I Have three IQueryable lists which i concat together into one list to
I have a dropdown list (FK) which I would like to set and display
I have several DropDown controls on a Web Form which are filled using AJAX

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.