• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

innerHTML with drop down box not working with IE

 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Members ,

I am trying autopopulating select box on change of another select box using ajax.It is working fine with Mozilla FF but it is not working with IE .I do not know what is going on here !!

Here is my code in js

This is my html code



From server I am getting the the following string
<option value=0>Select Types</option><option value=141>dfdfdf</option>


I don't know how to solve this problem??

Thanks in advance !

 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can not use innerHTML top set the options of a select element.

Eric
 
Fidel Edwards
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Eric Pascarello wrote:You can not use innerHTML top set the options of a select element.

Eric



Thanks for reply !

What does it mean ??
As I am running this code in FF and it is running very smoothly but in case of IE it fails !!

Please tell me that how can i achieve the same for FF ??

Thanks in advance !!
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://support.microsoft.com/kb/276228

Eric
 
reply
    Bookmark Topic Watch Topic
  • New Topic