I'm using asp.net with master pages. I have a listview that is producing 8 rows. What I would like to use jQuery to do is, when someone enters a value in cell 1-7, when they leave the cell i'd like to calculate cells 1-7 and put that value in cell 8. So each row would have the calculation done. I've found some code to loop through the table
enter code here
$(document).ready(function () {
$('#ctl00_ContentPlaceHolder1_lvOccLine_ctrl0_tbltblOccLineList tr').each(function () {
$(this).find('td').each(function () {
})
})
});
but have not made any progress past that. In firebug, I see that the value i'm trying to get after is in the this/cells/1/childnodes. It looks like this
NodeList[input#ctl00_ContentPlaceHolder1_lvOccLine_ctrl0_txtCacasian attribute value = "1"]
the html rendered looks like this
<input type="text" style="width:100%;" id="ctl00_ContentPlaceHolder1_lvOccLine_ctrl0_txtCacasian" value="1" name="ctl00$ContentPlaceHolder1$lvOccLine$ctrl0$txtCacasian">
Any help would be great