• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inserting HTML into a table dynamically

 
Corey McGlone
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was using some DHTML to change a table through JavaScript and all was going well until...
I'm inserting a new row into my table and one of the cells of the inserted row should contain a button. Here's the code I'm using:

The problem is that, instead of displaying a button in that cell, I see the HTML markup for a button. Is there anyway to get it to dislpay the button, rather than the input tag that I used to create the button?
Thanks,
Corey
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use innerHTML not innerTEXT
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic