依次读出checkbox中的内容
var rId = [];
var chk_value = [];
var data5="";
var data6="";
$("input[name='checkbox']").click(function() {
var data5 = "";
$("#cid").val("");
var chk_value1 = [];
$('input[name="checkbox"]:checked').each(function() {
chk_value1.push($(this).val());
});
$.each(chk_value1, function(n, value) {
data6 = value;
data5 = data5 + data6 + ",";
});
$("#cid").val(data5);
});