Created
December 30, 2015 14:45
-
-
Save abusedmedia/9c4bc3ccaca2b27be74e to your computer and use it in GitHub Desktop.
Get the list of elements
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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