0

I am trying

 function ddtip(thetest, thetext)

var Test = document.all[thetest].innerHTML;

var str = document.all[thetext].value;
var MyArray = str.split(",");

but it is not working in Firefox but the same is working in IE. thetest and thetext are the ID of the Server Controls.

I also tried with document.getElementById[thetest].innerHTML; but it is throwing error.

Please Help.

Thanks,

Rahul

4

1 回答 1

1

If "thetest" is a variable then getElementById should work. If it is the id of the element you are looking for then it should be like this: document.getElementById('thetest')

于 2013-08-01T08:25:41.620 回答