Ok, it work, but I another trouble. the code now become: $('tr:not(.className):odd').css({'background':'red'});
because I would like to color row alternatively. The problem is that I would like that the alternativy start alway with red.(first '<tr>' after every '<tr class="className"></></tr>' red, then 'white', then red,....) With this code it doesn't happen. Thanks On 27 Feb, 13:17, Thomas Jaggi <thomas.ja...@gmail.com> wrote: > This should do it: > $('tr:not(.className)').css({'background':'red'});