Yngvarr

Generation

generate functionSat, 25 Mar 2023

table to array

function tableToArray(table) { var tbl = []; $.each(table.tBodies[0].rows, function (i, row) { var theRow = []; theRow.push(row.cells[0].innerHTML + ' ' + row.cells[1].innerHTML); tbl[i] = theRow; }); return tbl; }

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant