H2OVN
Aug 27th 2008, 12:24 am
var oTable = document.getElementById("tbl");
for (var i = 0; i < oTable.rows.length; i++)
{
oTable.rows[i].style.fontWeight = "bold";
}
tbl is ID of <table>
with IE run error : rows is null
how can i use Collection of row objects (rows) in a table with IE8 ?
with IE7 , 6 no errors.
for (var i = 0; i < oTable.rows.length; i++)
{
oTable.rows[i].style.fontWeight = "bold";
}
tbl is ID of <table>
with IE run error : rows is null
how can i use Collection of row objects (rows) in a table with IE8 ?
with IE7 , 6 no errors.