Expand|Select|Wrap|Line Numbers
- function add_row(){
- var tr = some_reference;
- document.getElementById('tab_id').appendChild(tr);
- }
Expand|Select|Wrap|Line Numbers
- <table id=tab_id>
- <tr id=tr_id>....</tr>
- .....
- </table>
If i do
Expand|Select|Wrap|Line Numbers
- document.getElementById('tr_id').parentNode.appendChild(tr);
now it works in both :-)
Could you explain why this happens ..experts ?