[jQuery] Adding a specific <td> within JQGrid.
Im a real beginner at Javascript
Im trying to create a dynamic add up of one specfic <td> within a
table created with the JQGrid plugin.
The row class is jqgrow and I want the 4th td in each row and just a
running total of that cell.
I found some code online along these lines, that doesnt seem to work,
especially in terms of selecting the correct cell.
$('span#pd').remove();
var i = 0
$(".jqgrow td:eq(3)").each( function () {;
i = i + parseFloat( $(this).text() );
$("#timeworked").html("<span id=\"temp\">Total:" + i + "</span>");
});
});
Thanks for any help