var list = []; $.getJSON(\"json.js\", function(data) { $.each(data, function(i, item) { console.log(item.text); list.push(item.text); }); }); con
Hope this will help you..
var list = []; $(document).ready(function () { $('#test').click(function () { var oRows = $('#MainContent_Table1 tr').length; $('#MainContent_Table1 tr').each(function (index) { list.push(this.cells[0].innerHTML); }); }); });