Now available as a rowCount jQuery plugin. Recently on jQuery mailing list a user asked how he/she could add a row count in their table automatically. So I wrote a code snippet which looks like this: $(document).ready(function(){
$("table").each(function(){
if($(this).is('table')){
$('thead th:first-child, thead td:first-child', this).each(function(){
if($(this).is('td'))
$("table").each(function(){
if($(this).is('table')){
$('thead th:first-child, thead td:first-child', this).each(function(){
if($(this).is('td'))
Comments
Post a Comment