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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T15:43:27+00:00 2026-06-16T15:43:27+00:00

hoping you can help… This is driving me MAD!!! I have 2 select boxes

  • 0

hoping you can help… This is driving me MAD!!!

I have 2 select boxes where jquery gets values from the boxes to update various tables on my homepage.

The first one (currency) works absolutely fine.
The second one works the first time, but any subsequent changes to the site and the onchange is not picked up!!!

Any help would be much appreciated.

Link to site: http://bit.ly/10ChZys

jQuery("#changeCoinCountrySelect").change(function(){
    var country = jQuery('#changeCoinCountrySelect option:selected').val();
    jQuery("#coinTable").load("http://.../.../.../.../tables.php?country="+country);
});

The select which works as it should is with id=changeCurrencySelect the select which only works for at most 1 update is with id=changeCoinCountrySelect

What is supposed to happen is that the when the country is changed, the table refreshes with the correct countries coins. This happens once. Then when I try to select another country, it stops working.

  • 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-16T15:43:28+00:00Added an answer on June 16, 2026 at 3:43 pm

    Since you are replacing the HTML of a parent element (#coinTable) your change event is removed along with the old HTML at each AJAX call.

    jQuery("#coinTable").on("change", "#changeCoinCountrySelect", function(){
        var country = jQuery(this).val();
        jQuery("#coinTable").load("http://goldealers.co.uk/wp-content/plugins/gd/tables.php?country="+country);
    });
    

    More info: http://api.jquery.com/on/#direct-and-delegated-events

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

Sidebar

Related Questions

I'm hoping someone can help on this one, I have created a custom object
Hoping someone can help with this. I have other VM's that dont have problems,
I am hoping someone can help me with this. What I have been looking
I'm hoping someone can help me with this. I have a MS SQL table
Hoping you can help. Pretty new to regex and although I have written this
Hoping someone can help me with this: I have a rather long query (about
Hoping someone can help me out with this. Lets say I have a table
Hoping someone can help me design this correctly. In my TCP code, I have
Hoping someone can help me here as this is driving me insane. I used
Hoping you can help as im not sure how to approach this. Cant seem

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.