Jquery 根据在asp.net webgrid中选择的复选框更改标签或范围值

Jquery 根据在asp.net webgrid中选择的复选框更改标签或范围值,jquery,asp.net-mvc,Jquery,Asp.net Mvc,我有一个webgrid,每行都有一个复选框。我需要根据选中的复选框数计算购物车总数 我的webgrid看起来像: @grid.GetHtml( htmlAttributes: new { id="gridCartItems", style="max-width:60%" }, tableStyle: "webGrid", headerStyle: "webgridhead", alternatingRowStyle: "webgridalt", colu

我有一个webgrid,每行都有一个复选框。我需要根据选中的复选框数计算购物车总数

我的webgrid看起来像:

@grid.GetHtml(
htmlAttributes: new { id="gridCartItems", style="max-width:60%" },
tableStyle: "webGrid",
       headerStyle: "webgridhead",
       alternatingRowStyle: "webgridalt",
       columns: grid.Columns(
       grid.Column(columnName: "TransactionType", header: "Type", canSort: true),
       grid.Column(columnName: "ItemNumber", header: "Item No.", canSort: true),
       grid.Column("Price", "Price", canSort: false), 
       grid.Column( header: "Select", format: @<text><input name="selectTextBox" type="checkbox" class="selectitemcheckbox" checked="checked"
           value="@item.ItemId" onclick="selectCartItem()" /></text>)
    ))
我不知道如何访问webgrid中相应行的费用,然后将其添加到一个变量中,以计算总费用并在页面中显示

我如何做到这一点并相应地更新总数

    $('tr .selectitemcheckbox').each(function () {
        if ($(this).prop("checked") == true) {
        }
     });