• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Inserting HTML into a table dynamically

 
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
use innerHTML not innerTEXT
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic