Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- let tableData = [];
- $('#referred_affiliates tbody tr td').each(function(index, element){
- tableData.push($(element).text());
- });
- console.log(tableData);
- });
- $(document).ready(function() {
- let tableData = [];
- $('#referred_affiliates tbody tr').each(function (index, tr) {
- let row = [];
- tr.('td').each(function (rowId, rowData) {
- row[rowId] = rowData
- });
- tableData.push(row)
- })
- console.log(tableData);
- });
Add Comment
Please, Sign In to add comment