javascript - How to get all rows from the table except header row? -


i have table created dynamically in javascript.

i have table:

enter image description here

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

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

xcode - Swift Playground - Files are not readable -

jboss7.x - JBoss AS 7.3 vs 7.4 and differences -