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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:39:27+00:00 2026-05-23T06:39:27+00:00

I have a small issue on a search form. PLease check this: http://www.fortisfitness.ca/test/script.php What’s

  • 0

I have a small issue on a search form. PLease check this:http://www.fortisfitness.ca/test/script.php

What’s the problem? When I select the country, the “cities” drop down refreshes with the specific values for that country. All good, but when I select a city, the data is loaded corectly from the database, but the city value from the dropdown menu remains at “All” value.

I use two ajax functions. One for loading data into the table and one for refreshing the dropdown list. Please help . . . Thank you!

  • 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-23T06:39:27+00:00Added an answer on May 23, 2026 at 6:39 am

    its not about your JavaScript code, its somewhere on the server site.

    the request of the ajax call, when selecting a city, is like this:

    get_city.php?S_City=&D_Country=&D_City=%20Sao%20Miguel%A0&S_Site=&priceh=&time=&pag=1
    

    the response is:

    <option SELECTED value="">All</option><option value=""></option><option value=" Äkkilähtö"> Äkkilähtö</option>
    ...
    

    in your ajax complete function you set the html code of the dropdown with the response:

    $("#titles1").html(msg);
    

    as you can see, the response returns the dropdown box with the “all” option selected. so, take a closer look at your php code!

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

Sidebar

Related Questions

Got a small issue with this website structure: www.bigideaadv.com/xsp Looking to have this container
hey guys, i have very small issue please see the code below // this
I have a small issue with some .htaccess rules on our website - http://www.presencemultimedia.co.uk
I have a form that looks like: <form action=search.php method=post> <fieldset> <label for=level_one>Main category</label>
I'm looking to implement fuzzy search for a small PHP/MySQL application. Specifically, I have
I have a small issue. I can't seem to get the script to recognise
I seem to have a small issue with my script where I need to
i have an small issue with the way this problem is resolved. some would
If you visit this page in Chrome: http://www.immigrationconsult.org/contact.php And Inspect Element on the page,
I have a small issue with a bit of code I use to check

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.