Get the number of rows in a HTML table in java script?

0 votes
54 views
asked Aug 31, 2013 in java script by john (4,220 points)
Hi All

Get the number of rows in a HTML table in java script??

1 Answer

0 votes
answered Aug 31, 2013 by kalpana (3,995 points)
HI john,

  TRY

   var count = document.getElementById("standingtable").getElementsByTagName('tr').length;
...