Menu
Hi,
I’m new to the forum! 😀
I’m working on something at the moment and just had a little trouble getting something working. I solved the problem but I don’t know what I was doing wrong so I thought I’d ask on here.
I have an array of DOM elements i got using getElementsByTagName().
One each of those elements the className variable is undefined, but getAttribute(‘class’) works ok.
The elements are table cells: <td class=”myClass”></td>
The problem occurred in FF 3.0.3 but i didnt have any other browsers to test on.
I’m not particularly familiar with DOM stuff yet so does anybody know why this happens?
Thanks
Joe