• Post Reply Bookmark Topic Watch Topic
  • New Topic

Deleting first row in a table  RSS feed

 
Arundhathi Menon
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i delete the first row of a table???
The row count of the header row is one
That of the firt row is two

tb1.deleteRow(2) doesnt work......tb1.deleteRow(n) works where n>2
Why???
Could u pls suggest an alternative...
regards
Menon
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What sort of object is tb1? Is this question about a HTML table or a SQL table? Is deleteRow() a JavaScript function?

I really think that the first row of data in the table would be numbered '0' if the 'header row' isn't actually data inserted into the table. If the 'header row' is actually data inserted into the table, the first data row would be '1'.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!