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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:20:15+00:00 2026-05-29T10:20:15+00:00

Please refer to http://jsfiddle.net/7FfMd/6/ run the code, then select E from the drop down,

  • 0

Please refer to http://jsfiddle.net/7FfMd/6/

run the code, then select “E” from the drop down, another input box appear, however I cannot select option B from the second input.

How can I fix it.

For some reason, I when I select option “D” from the first input again, the second select box does not update too.

Thanks

  • 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-29T10:20:16+00:00Added an answer on May 29, 2026 at 10:20 am

    That’s because you catch the change event on the div that surrounds both dropdowns. When you change the second dropdown, the event handler will be triggered and remove the dropdown where you made the selection and replace it with a new dropdown.

    If you want to bind the change event to the parent element, you need to check in which dropdown the change was made (using event.target), so that you don’t recreate all the dropdowns. If you use delegate to bind the event handler, this will contain the element where the change was made:

    jQuery('.change').delegate('select', 'change', function() { ... });
    

    It might be simpler to bind the event for each select, then you don’t have to check wich dropdown that caused the event. If you use delegate, you can bind the event eventhough the element doesn’t exist yet, but you need to put a class, name or id on the dropdowns so that they can be identified:

    jQuery('.change').delegate('#firstDropdown', 'change', function() { ... });
    jQuery('.change').delegate('#secondDropdown', 'change', function() { ... });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Code for the below test: http://jsfiddle.net/fXdjm/ Questions about line heights: Please refer first box.
Please refer to the below jsfiddle code snippet: http://jsfiddle.net/JLXs5/3/ When the user clicks here,
Please refer to http://jsfiddle.net/UEePE/1025/ for the x-axis, when I don't want to skip any
Please refer to http://jsfiddle.net/4kSpz/ Each li is shown inline, but for some reason the
Please refer to this: http://jsfiddle.net/k8c7w/ I am trying to get the middle grey band
Could you please refer this http://jsfiddle.net/BRWWN/ How can I position the divs in the
http://www.asp.net/data-access/tutorials/adding-a-gridview-column-of-radio-buttons-cs Please refer the above link. How to select the RadioButton programatically?
Please refer to the topic http://www.codeproject.com/KB/viewstate/SaveViewState.aspx . The topic demonstrates how you can save
Please refer to this background question. After constructing this COUNT, how would I then
How to build exe files from py files (compatible with win32)? please don't refer

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.