Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically updating DOM Objects

Status
Not open for further replies.

b00ger

Programmer
Joined
Oct 22, 2003
Messages
7
Location
US
Hello everyone?

I was wondering if there is a simple way to dynamically update a DOM object like a table cell. I basically want to have a few buttons and when a button is click (onclick) it sets the text of a table cell to a particular string with a particular color. I've tried to create a method that gets the table cell by it's ID (getElementById) and appends a textNode as a child (appendChild) but couldn't get it to work. Any help or ideas is greatly appreciated! Thanks in advanced!
 
Duplicate thread. Can we all use this one: thread216-687004
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top