I am trying to work out how to get the value of table cell for each row using jQuery.
My table looks like this:
-
This works
$(document).ready(function() {
for (var row = 0; row < 3; row++) {
for (var col = 0; col < 3; col++) {
$("#tbl").children().children()[row].children[col].innerHTML = "H!";
}
}
});
- 热议问题