选中复选框 试试:
$('#' + ids[j]).attr("checked", "checked");或$('#' + ids[j]).prop("checked", true);// jquery 1.6+