jquery实现购物车根据商品的选择更改总价
<c:set var="totalPrice" value="0"></c:set><%-- 设置总价变量为totalPrice --%>
<c:forEach items="${requestScope.list }" var="productDetail"><%--循环遍历servlet接受的数据--%>
<tr>
<td><input type="checkbox" id="${ productDetail.pid}" name="pid" value="${ productDetail.pid}" checked="checked"/></td>
<td width="200px">
<dl> <dt><a href="proinfo.html"><img src="images/${ productDetail.pimg}" width="85" height="85" /></a></dt><dd>${ productDetail.pname}<br /></dd>
<div class="clears"></div>
</dl>
</td>
<td><strong class="red&#