Skip to content

Instantly share code, notes, and snippets.

@abusedmedia
Created December 30, 2015 14:45
Show Gist options
  • Save abusedmedia/9c4bc3ccaca2b27be74e to your computer and use it in GitHub Desktop.
Save abusedmedia/9c4bc3ccaca2b27be74e to your computer and use it in GitHub Desktop.
Get the list of elements
var arr = []
$('tbody').children().each(function(i, e){
var td = $(e).children()
if(td.length == 3){
var name = $(td[0]).find('a').text();
var link = $(td[0]).find('a').attr('href');
arr.push({name:name, link:link})
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment