$.each(arrayAllSjyd, function(indexAll, itemAll){
var chkFlg = "0";
$.each(arraySjydSel, function(indexSel, itemSel){
if(itemAll.split("/")[0] == itemSel.split(" ")[0]){
result_sjyd += '<label style="margin-right: 5%"><input checked name="checkboxYdlx" type="checkbox" value="' + itemAll + '">' + '<font size="1">' + itemAll.split("/")[1] + '</font>'+ '</label>';
chkFlg = "1";
}
})
if(chkFlg == "0"){
result_sjyd += '<label style="margin-right: 5%"><input name="checkboxYdlx" type="checkbox" value="' + itemAll + '">' + '<font size="1">' + itemAll.split("/")[1] + '</font>'+ '</label>';
}
if((indexAll+1) % 5 == 0){
result += '<br>'
}
});
$("#text_sjyd").html(result_sjyd);
<div class="form-group" style="display:none" id="ydfj">
<label class="control-label col-md-2"> 疑点附件: </label>
<div class="col-md-9">
<div class="input-icon right">
<button id="btn_dgContent_record" class="btn blue">
添加
</button>
</div>
</div>
</div>
$("input[name='checkboxYdlx']").live('change', function(e){
var chklen = $("input:checkbox[name='checkboxYdlx']:checked").length;
if(chklen > 0 ){
//document.getElementById("ydfj").style.visibility="visible";
document.getElementById("ydfj").style.display="block";
}else{
//document.getElementById("ydfj").style.visibility="hidden";
document.getElementById("ydfj").style.display="none";
}
});