469,356 Members | 2,250 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,356 developers. It's quick & easy.

how use rows[] in IE8

1
Collection of tr objects (rows) in a table can;t use in IE8.
Expand|Select|Wrap|Line Numbers
  1. var oTable = document.getElementById("tbl");
  2. for (var i = 0; i < oTable.rows.length; i++)
  3. {
  4.     oTable.rows[i].style.fontWeight = "bold";
  5. }
  6.  
run with IE 7,6 or firefox ok. but run with IE8 has error rows is null.
help me. I need use rows. How ?
Aug 27 '08 #1
1 973
Dormilich
8,652 Expert Mod 8TB
if this is not triggered by an event you could even use simple CSS
Expand|Select|Wrap|Line Numbers
  1. #tbl {
  2.   font-weight: bold; }
  3. /* tr and td will inherit that value */
Aug 27 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Subba Rao via DotNetMonster.com | last post: by
12 posts views Thread by Graham Blandford | last post: by
68 posts views Thread by Martin Joergensen | last post: by
11 posts views Thread by jimstruckster | last post: by
1 post views Thread by CARIGAR | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.