checkbox操作
function getcheckbox(name) {
var checkedList = new Array();
$("input[name='" + name + "']:checked").each(function () {
checkedList.push($(this).val());
});
return checkedList;
}
function selectCheckBox(selectall, name) {
$('input[name="' + selectall + '"]').click(function () {
if ($(this).is(':checked')) {
$('input[name="' + name + '"]').each(function () {
$(this).prop("checked", true);
});
} else {
$('input[name="' + name + '"]').each(function () {
$(this).removeAttr("checked", false);
});
}
});
}