Your code is not like jQuery. Are you sure you are not using the term jQuery as a synonym for JavaScript? :) If so, I suggest you read this question ; this will make things much more understandable to you.
Anyway, here comes the JavaScript:
var tbl = document.getElementById("tbl-1");
var numRows = tbl.rows.length;
for (var i = 1; i < numRows; i++) {
var ID = tbl.rows[i].id;
var cells = tbl.rows[i].getElementsByTagName('td');
for (var ic=0,it=cells.length;ic<it;ic++) {
alert(cells[ic].innerHTML);
}
}
Alternatively, if you are really using jQuery:
var table = $('#tbl-1').
var rowIds = [];
var cells = [];
$('tr', table).each(function() {
rowIds.push($(this).attr('id'));
$('td', $(this)).each(function() {
cells.push($(this).html());
});
});