I'm trying to dynamically generate a table in Javascript. I have a DIV tag inside a TABLE tag. I'm dynamically generating the TR/TD tags as a
string and setting the innerHTML of the DIV to the generated string. For some reason, the browser is removing the opening TR and TD tag, and my rows aren't being displayed.
Here's my code
In my onLoad, I am calling insert multiple times. I am sure insert works correctly. However, whe I call drawTable, the second alert shows
< TR >< TD >Mr. Smith< /TD >< TD >1< /TD >< TD >10/10/2000< /TD >< TD >Java< /TD >< /TR > which is correct, but the third alert shows
Mr. Smith< /TD >< TD >1< /TD >< TD >10/10/2000< /TD >< TD >Java< /TD >< /TR > . The opening TR and TD tags are removed
I am using IE. I know :roll:
[ September 17, 2005: Message edited by: Jayesh Lalwani ]
[ September 17, 2005: Message edited by: Jayesh Lalwani ]
[ September 17, 2005: Message edited by: Jayesh Lalwani ]