L
LargePig
I have some code that works in IE:
function simple_example()
{
myarray[0] = "element1of12"
thiselement = document.getElementById(myarray[0])
}
But it does not work in firefox, returns 'null'.
The above is a simplification of my code, and i cannot simply do:
function simple_example()
{
thiselement = document.getElementById("element1of12")
}
I have tried:
function simple_example()
{
myarray[0] = "element1of12"
thiselement = document.getElementById(myarray[0].toString())
}
Anyone have any ideas as to how i can make this work?
Thanks
Marc
function simple_example()
{
myarray[0] = "element1of12"
thiselement = document.getElementById(myarray[0])
}
But it does not work in firefox, returns 'null'.
The above is a simplification of my code, and i cannot simply do:
function simple_example()
{
thiselement = document.getElementById("element1of12")
}
I have tried:
function simple_example()
{
myarray[0] = "element1of12"
thiselement = document.getElementById(myarray[0].toString())
}
Anyone have any ideas as to how i can make this work?
Thanks
Marc