/// <summary>
/// 点击行选中或者取消CheckBox
/// </summary>
/// <param name="TableID">表ID</param>
function SetCheckBox_Check(TableID) {
var $TableID = TableID == "" ? "#tb_List" : "#" + TableID + "";
//循环每个tr行,添加click事件
$($TableID).find("tr").live("click", function () {
//标题行不作任何操作
if (this.rowIndex == 0) return;
if ($(this).find("input").attr("checked") == 'checked') {
//已选中的行取消选中
$(this).find("input").attr("checked", false);
} else {
//未选中的行,进行选中
$(this).find("input").attr("checked", true);
}
});
}