js查询checkbox已选择的值

$("input[id^=ck]").each(function(index,e){
            if($(e).is(":checked"))
            {
                userArray.push($(e).attr("value"));
            }    
        });
原文地址:https://www.cnblogs.com/weiloong/p/5092227.html