• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to copy a row data to another row in a html table?

 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to copy a row data to another row in a html table?

I have tried this
dTable.rows[1].innerHTML = dTable.rows[2].innerHTML ;
dTable.rows[1].cells[1].innerHTML = dTable.rows[2].cells[1].innerHTML;

it doesn't work.

Thanks.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic