javascript - How to get all rows from the table except header row? -
i have table created dynamically in javascript.
i have table:
here way how rows table above:
var trows = table.rows;
this way rows table above including header row. question there way rows table except header row?
put rows inside <tbody>
, put header inside <thead>
do
var trows = document.getelementbyid('tableid').getelementsbytagname('tbody')[0].rows;
Comments
Post a Comment