标签:
表格行计算 总金额: function jisuanTrJinE(obj){ var curTab = $(obj).closest("table"); var curTr = $(obj).closest("tr"); var curTabId = curTab.attr("id"); var zongJinE = 0; //alert(curTabId); var danjia = curTr.find("input[class=‘danjia‘]").val(); var shuliang = curTr.find("input[class=‘shuliang‘]").val(); if(danjia==""){ danjia=0;} if(shuliang==""){ shuliang=0;} zongJinE = danjia*shuliang; curTr.find("input[class=‘jinE‘]").val(zongJinE); }
标签:
原文地址:http://www.cnblogs.com/hui-blog/p/5085063.html