function addRow() {
    var table = document.getElementById('table');
    var length = table.lastElementChild != null ? table.lastElementChild.childElementCount : 0;
    var tr = document.createElement('tr');

    for (var j = 0; j < length; j++) { // add cells in new row
        var td = document.createElement('td');
        td.setAttribute('class', 'column');
        var textarea = document.createElement('textarea');
        textarea.setAttribute('class', 'table_text_area');
        td.appendChild(textarea);
        tr.appendChild(td);
    }
    table.appendChild(tr);
}
/**
 * Add one row on end of table #table.
 */
Add one row on end of table #table.
Add one row on end of table #table .
function addRow() {
    var table = document.getElementById('table');
    var length = table.lastElementChild != null ? table.lastElementChild.childElementCount : 0;
    var tr = document.createElement('tr');
    for (var j = 0; j < length; j++) { 
        var td = document.createElement('td');
        td.setAttribute('class', 'column');
        var textarea = document.createElement('textarea');
        textarea.setAttribute('class', 'table_text_area');
        td.appendChild(textarea);
        tr.appendChild(td);
    }
    table.appendChild(tr);
}
function addRow ( ) { var table = document . getElementById ( 'table' ) ; var length = table . lastElementChild != null ? table . lastElementChild . childElementCount : 0 ; var tr = document . createElement ( 'tr' ) ; for ( var j = 0 ; j < length ; j ++ ) { var td = document . createElement ( 'td' ) ; td . setAttribute ( 'class' , 'column' ) ; var textarea = document . createElement ( 'textarea' ) ; textarea . setAttribute ( 'class' , 'table_text_area' ) ; td . appendChild ( textarea ) ; tr . appendChild ( td ) ; } table . appendChild ( tr ) ; }
Add one row on end of table #table.
Add one row on end of table #table .
// add cells in new row