1多选复选框
<input type=checkbox name=id value=${entity.id}>
2.循环遍历
var courseIdList = []; var courseList = $('input[type="checkbox"]:checked');courseList.each(function() { courseIdList.push($(this).prop('value')); });