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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:47:16+00:00 2026-05-25T06:47:16+00:00

I had some issue with the dropdown not displaying the text but did contain

  • 0

I had some issue with the dropdown not displaying the text but did contain the values in IE8. I followed john_doe’s solution which worked.

Now I have tried IE9 for the first time and the dropdowns are not generated at all. All other browsers work fine including IE8.

I can’t see what might be the cause – can you explain the problem to me?

if(max_ch>0){
    var newDiv = $('<div>Room '+(i+1)+
        ' <select class="adu" name="data[Rate]['+r_id+']['+ro_id+
        '][adults][]"></select> adults. <select class="chi" name="data[Rate]['+r_id+
        ']['+ro_id+'][children][]"></select> children.</div>'
    );
    newDiv.attr("id","occupants"+i).appendTo(showdiv+' .rooms_adults');

    var roomPrice = $('<input type="hidden" name="data[Rate]['+r_id+']['+ro_id+'][prices][]" value="'+room_bo+'" />');
    roomPrice.attr("id","roomprice"+i).appendTo(showdiv+' .rooms_adults');

    var num_opts = Number(max_ad) + 1,
        slc_adu = $(showdiv+' #occupants'+i+' select.adu');
    for( ad=0; ad < num_opts; ad++){
        slc_adu.append("<option value=\"" + ad + "\">" + ad + "</option>");
    }

    var num_opts = Number(max_ch) + 1,
        slc_ch = $(showdiv+' #occupants'+i+' select.chi');
    for( ch=0; ch < num_opts; ch++){
        slc_ch.append("<option value=\"" + ch + "\">" + ch + "</option>");
    }

    $(showdiv+' #occupants'+i+' select.adu').val('1');                  
}
  • 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-25T06:47:17+00:00Added an answer on May 25, 2026 at 6:47 am

    The issue was that I was using jquery 1.5 instead of 1.5.1

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

Sidebar

Related Questions

I know this isn't a unique issue but I've not had much luck finding
I had some troubles implementing Lawler's algorithm but thanks to SO and a bounty
Note- even though im using phonegap, the question is not about some issue in
I do not currently have this issue , but you never know, and thought
Due to a recent issue i had some days ago (you can check this
I recently had an issue with some global variables deleted by the system. From
So basically this code was working fine before. I had some computer issues and
I had some time this afternoon to run a head to head comparison between
I had some site templates designed for me recently. I got the final HTML
I had some problems with my subversion server and i had to restore it

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.