NN and IE display tables differently on row.style.display

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
bugthefixer
Forum Contributor
Posts: 118
Joined: Mon Mar 22, 2004 2:35 am

NN and IE display tables differently on row.style.display

Post by bugthefixer »

The code to display a prticular row is something like this

Code: Select all

function checkOther()
{
var other = document.getElementById("rowOther");
if(document.frmAddItem.cboName.options[document.frmAddItem.cboName.selectedIndex].value == "other")
	other.style.display = "block";
else
	other.style.display = "none";
}
where rowOther is the ID of row.....

now the problem is on display it works fine in IE but the alignment of row is disturbed in Netscape
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

Post by kendall »

i think its inline unless u need it block for a specific reason?
Post Reply