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
why not just this?
$('table tr:not(:first-child):not(:last-child)');
works as pure CSS selector as well.