When the document is ready to be manipulated, jquery adds a class to every even row, and another to every odd row, in order to visually see the different rows. But whenever I update (sort based on header) the rows, they don't update no matter what i try.
<script type="text/javascript">
$(document).ready( function( ) {
$('table tr:even').addClass('evenRow');
$('table tr:odd').addClass('oddRow');
$("th").click( function( event ) {
$('table tr').removeClass('evenRow oddRow');
$('table tr:even').addClass('evenRow');
$('table tr:odd').addClass('oddRow');
});
} );
</script>