Changing a background color. This works in FF:
It does not work in IE. Instead, this works in IE:Code:document.getElementById("box"+c+"cell").style.backgroundColor = "#CAFF89";
My question is how do I determine the DOM element's name dynamically in IE? (e.g. box1cell vs ("box"+c+"cell")Code:box1cell.style.backgroundColor = "#CAFF89";
Can I do it without jquery? Thus far I've been unable to get jquery successfully working.


Reply With Quote
Bookmarks