This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using InnerHTML to Add Dynamic Rows to Table

 
Alec Lee
Ranch Hand
Posts: 569
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to add some rows to a table dynamically. With DOM, I need to do many document.createElement() to create the <tr>,<td> and lots of other formatting elements. But is there a simplier way to do this? MSDN says .innerHTML for <tr> is readonly so I cannot simply modify this property.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have the option of using createElement or insertRow()/insertCell()

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic