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) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -