aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Inserting HTML into a table dynamically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Inserting HTML into a table dynamically" Watch "Inserting HTML into a table dynamically" New topic
Author

Inserting HTML into a table dynamically

Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
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


SCJP Tipline, etc.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
use innerHTML not innerTEXT
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Inserting HTML into a table dynamically