J
Jason Morehouse
Hello,
I want to access an element by passing part of the name to the function...
eg:
function show_files(item,data) {
document.getElementById('row-' + item).innerHTML = data;
}
show_files('2','hello world');
This seems to work fine in Firefox, but errors in IE. What is the best
way to dynamically access an element?
Cheers
-J
I want to access an element by passing part of the name to the function...
eg:
function show_files(item,data) {
document.getElementById('row-' + item).innerHTML = data;
}
show_files('2','hello world');
This seems to work fine in Firefox, but errors in IE. What is the best
way to dynamically access an element?
Cheers
-J