- $(checkcolumn).click(function(){
- if(this.checked){ status = "checked" } else { status = "" }
- var tableid = $(this).parent().parent().parent().parent().attr("id");
- var columncontext = $(this).parent();
- var tdindex = columncontext.parent().children().index(columncontext);
- $("#"+tableid+" tr td:nth-child("+(tdindex+2)+") input[type='checkbox']").attr("checked",status);
- });
-
- $(checkrow).click(function(){
- if(this.checked){ status = "checked" } else { status = "" }
- $(this).parent().siblings().each(function(){
- $(this).find("input[type='checkbox']").attr("checked",status);
- })
- });
-