User:Blaster Niceshot/wikia.js

//Script to get table info //See http://community.wikia.com/wiki/Thread:1018387 for more details /*$.get('http://clashroyale.wikia.com/index.php?title=' + pageName +).done(function(statData) { });*/

var pageName = 'Goblins'; var selectLevel = 1; var dataArray = []; var i = 1; $('#unit-statistics-table tbody tr:eq(' + selectLevel + ') td').each( function(i){   dataArray.push($(this).text);    console.log(dataArray); });