checkBox 获取选中的值
//获取角色的ID
function getRoleID(checkBoxName) {
var selectRoleID = "";
$("input[name='" + checkBoxName + "']").each(
function() {
if ($(this).attr('checked') == true) {
selectRoleID += $(this).val() + ",";
}
}
);
return selectRoleID;
}
$("input[type='checkbox']:checked").attr("value");