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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:48:41+00:00 2026-05-29T23:48:41+00:00

I have Country, Regions and Cities selects. When a user changes the Country select,

  • 0

I have Country, Regions and Cities selects. When a user changes the Country select, it sends an AJAX request and receives data that looks like that:

<div class="regionData">
  <option value="1">Region name</option>
  <option value="2">Region name 2</option>
</div>

<div class="cityData">
  <option value="1">City 1</option>
  <option value="2">City 2</option>
</div>

Then I update the other 2 selects

$("#Estate_region_id").html($(html).filter(".regionData").html());
$("#Estate_city_id").html($(html).filter(".cityData").html());

It all works just fine in all the browsers except for IE (what a surprise). In IE .html() acts as though it is .text() and strips all the tags, leaving only text. Can anyone advice on how to deal with this?

  • 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-29T23:48:42+00:00Added an answer on May 29, 2026 at 11:48 pm

    Your html is invalid. You cannot have option tag inside div.

    Send your response like this.

    <select class="regionData">
      <option value="1">Region name</option>
      <option value="2">Region name 2</option>
    </select>
    
    <select class="cityData">
      <option value="1">City 1</option>
      <option value="2">City 2</option>
    </select>
    

    Your JavaScript looks good just modify the response html it will work fine.

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

Sidebar

Related Questions

I have a file that contains the following in a csv file; country,region,city,postalCode,metroCode,areaCode I
Assume that I only have a country code (en, de, fr) and I need
I have a method that needs to accept an array of country names, and
I have object Country, which has Areas. Areas has Provinces. Provinces has Cities, and
I have following list of dictionaries: d = [ { 'name': 'test', 'regions': [{'country':
I have data in an Excel spreadsheet that has 10,000 rows with the following
I have a map that is cut up into a number of regions by
Ok so at work we have discovered that this method to fetch related data
We have a program that displays map data (think Google Maps, but with much
I have 5 databases which represent different regions of the country. In each database,

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.