首页 > 技术文章 > js查询checkbox已选择的值

weiloong 2015-12-31 16:59 原文

$("input[id^=ck]").each(function(index,e){
            if($(e).is(":checked"))
            {
                userArray.push($(e).attr("value"));
            }    
        });

 

推荐阅读