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!
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!