PDA

View Full Version : innerHTML not working in IE



varsha.kothari
21 Jul 2008, 10:04 PM
Hi,
I am having a problem in writing innerHTML for a label.Its not working in IE, giving "Runtime error".

I tried like this:
document.getElementById("label_id").innerHTML="SOme text";
It is not working(runtime error).

I also tried doing this way:
var x= document.getElementById("label_id").children(0);
x.innerHTML="some text";
Its also not working(runtime error).

I also tried like this:
var x= document.getElementById("label_id");
x.innerHTML="some text";
Its also not working(runtime error).

Please help me as early as possible. Its working fine in mozilla........
Thanks in advance.

evant
21 Jul 2008, 10:07 PM
What does this have to do with Ext?