i want to dynamically add a class to all rows of a table except the first and last row. how would i do this without assigning a css class to the rows to identify them. I a
Strange the suggestions posted did not work, they should all work! BUT...
If it did not work, do it this way.... slightly slower but MUST WORK!! TRY:
$('table#tbl tr').addClass('highlight');
$('table#tbl tr:first-child').removeClass('highlight');
$('table#tbl tr:last-child').removeClass('highlight');