Topic: Append table-row elements to existing table (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Phoenix |
![]() Hello, |
Maniac (V) Mad Scientist with Finglongers From: Germany |
![]() All right... no magic beyond this, but I had to look at a place where I had done this before |
Paranoid (IV) Inmate From: Norway |
![]() Indeed no magic there. Just do some document.createElement( nodeName ) ( where nodeName is td, tr, ... ) and append the resulting nodes where you want/need to. And avoid using innerHTML directly for it can lead to script injection and the like. Prefer using document.createTextNode( 'plainText' ) |