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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T19:52:09+00:00 2026-06-16T19:52:09+00:00

When using knockout 2.2.0 with a dropdown box in IE8 we are getting an

  • 0

When using knockout 2.2.0 with a dropdown box in IE8 we are getting an error. In IE 8 the length of the array is shown as 2 instead of 1. It works fine in IE9 and above and other browsers.

I’ve put the code in this fiddle.

The UI code looks like:

<script>
   function EmailDomain(text, value) {
       this.DisplayText = text;
       this.Value = value;
   }
   function VM(){
       self.EmailDomains = ko.observableArray([
            new EmailDomain("aaa.com", "aaa.com"),
        ]);

       self.SelectedEmailDomain = ko.observable(self.EmailDomains()[0]);
   }
</script>

<select data-bind="options: EmailDomains, optionsText: 'DisplayText', value: SelectedEmailDomain"></select>

the screen where i an getting the error

  • 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-16T19:52:10+00:00Added an answer on June 16, 2026 at 7:52 pm

    Haven’t had a chance to test this yet as I don’t have IE8 on this machine, but it might be because you have an accidental comma at the end of your array that isn’t necessary?

    self.EmailDomains = ko.observableArray([
        new EmailDomain("aaa.com", "aaa.com") // Removed: ,
    ]);
    

    IE does some crazy things when there are commas out of place so its worth a try!

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

Sidebar

Related Questions

I am using knockout and have an array Properties and each Property can have
I just started using knockout.js and it works great with normal bidings. I have
I have this code in my javascript view model using Knockout. Everything works as
I'm using knockout.js to render my view, I'm getting the data from the server
I am using Knockout JS. while in the subscribe function of dropdown. I need
I am trying to update a dropdown using knockout and data retrieved via an
I am trying to create a group of dropdowns using knockout out that allow
I am using knockout.js in my ASP.NET MVC project. I figured out how to
A bit of a mystery has cropped up using knockout (2.1.0) and knockout mapping
I want to say hello to the stackoverflow community. I've just started using knockout

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.