我使用以下函数来计算产品的总价:
jQuery(document).ready(function() {
function j_updateprice() {
var p = 0;
jQuery('.am-signup-form input[type=radio][id^=product]:checked,
.am-signup-form input[type=checkbox][id^=product]:checked')
.each(function(i, v) {
if (jQuery(v).attr(