colspan bug in firefox

ram_trb used Ask the Experts™

am getting an issue with colspan while hide/show in firefox, it dont takes the colspan value and getting all the datas in single <TD>, Help me to fix this issue..

am using this html code

<tr bgcolor="#e3eefe" id='trId1' style="display:none"><td colspan='11' class='values' height='20'><span id='spanId1' style="display:none">&nbsp;</span></td></tr>

and using this JS ::

document.getElementById("trId1").style.display = "block";
document.getElementById("spanId1").style.display = "block";
document.getElementById("spanId1").innerHTML = tempHtml;

waiting for ur response
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Firefox prefers:
document.getElementById("trId1").style.display = "table-row"; 

Open in new window

Thanks for points ram_trb.  Any reason why only a B grade?  Did it not work as you wanted? :)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial