Skip to content

Instantly share code, notes, and snippets.

@KGZM
Created July 16, 2012 23:15
Show Gist options
  • Save KGZM/b8ca3c130dc63fcbb1a4 to your computer and use it in GitHub Desktop.
Save KGZM/b8ca3c130dc63fcbb1a4 to your computer and use it in GitHub Desktop.
jQuery Table Extraction Example
var extractTable = function(table) {
var output = [];
$(table).find('tr').each(function(index, trow) {
var row = [];
$(trow).find('td').each(function(index, tcell) {
row.push($(tcell).text());
});
output.push(row.join(',') + ';');
});
return output.join('');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment