林通过与ID的从选中的复选框的jQuery的广东话suming时的值复选框
林收集在一个数组中的值一定值后,但是我也想在标题总结了值,但我得到的返回值不能得到它做到这一点...
我要去哪里错了?我知道它在返回的变量调用但林不知道如何得到它
function doAlloMath(){
var sum=0;
alert($("input[name=alloInv]:checked").map(function() {return this.value;}).get().join(","));
alert($("input[name=alloInv]:checked").map(function() {return this.title;}).get().join(","));
alert($("input[name=alloInv]:checked").each(function (a,b) {sum += parseFloat ($(this.title)); return sum;}).get());
}
什么呢'$(this.title)'包含哪些内容? – Horen
你介意发布一个HTML的小样本吗? – Kyle