What would be the best way to achieve this using jQuery, I'm trying to change the text for each cell upon row click, but I can't access the cell text in the first place (str
is empty):
$("tr").bind("click", function() {
$cells = $(this).children();
$cells.each(function(index, cell) {
var str = $(cell).val();
});
});