$("#tableid tr:gt(0)").each(function(i){
$(this).children("td").each(function(j){
alert("第"+i+"行,第"+j+"列");
if(0 == i && 2 == j) {
$(this).css({"background-color":"red"});
}
});
});
2.dom转jQuery
var td = document.getElementById('tableid').rows[i].cells[j];
var $td = $(td);//jquery对象