var idList= $("input[type='checkbox'][name='allChoose']:checked");
var idList= $("input[name='allChoose']:checked");
var strId="";
idList.each(function(index,element){
strId = strId+$(element).val()+",";
});
$("input[type='checkbox'][name='checked']:checked").each(function(){
safetyIds =safetyIds+ $(this).val()+',';
});
form.on('checkbox(allChoose)', function(data){
var child = $(data.elem).parents('table').find('tbody input[type="checkbox"]:not([name="show"])');
child.each(function(index, item){
item.checked = data.elem.checked;
});
form.render('checkbox');
});
function selectAll(data) {
$("input:checkbox[name='checked']").attr("checked", data.checked);
}