javascript - Filter td elements in a tr out, that are not displayed -
i have datatable in asp.net want modifiy. select <tr> rows of datatable jquery: var rows = $("#dginformation tr:gt(0)"); however, <tr> elements have multiple <td> elements , of them marked display:none . how can rows -variable without hidden cells? the purpose of check cells if different each other , 1 line each difference should displayed. if dont filter not displayed elements, compared , have lines, visually same. update works adding css class <td> -elements should hidden. have clean dom-tree (i hope can call way) in firebug. whole function below reference: function filtertable() { var rows = $("#dginformation tr:gt(0)"); var prevrow = null; var counter = 2; rows.each(function (index) { if (prevrow !== null) { var = 1; var changes = 0; $(this).children("td:visible").each(function () { if(i > 2)