I am developing one JavaScript script that will hide and show td on my button click.
When I try to hide td , than IE6 hide td and put some spaces there, but, nevertheless, my code works on all the latest browsers of the order, even latest IE .
My code is:
data = getElementsByClassName("data", "td", myElement); for (i = 0; i < data.length; i++) { td = data[i]; tr = td.parentNode; for (j = 0; j < tr.childNodes.length; j++) { tr.childNodes[j].style.display = "none"; } }
Here I wrote my own getElementsByClassName method becusae IE6 does not support it, and I want IE6 support. The code above works in all other browsers except IE6 .
In IE6, my table looks like this:

And in other browsers

Thanks for the help.
source share