Paint row by row in table
Hello friends. Long time. I want to be fabulous.
I need help to paint row by row in a table with click.
I got this:
- $(document).ready(function() {
- $('tr.rows_table td').click(function(){
-
- $row= $(this).closest('tr');
- $row_fixed=$('td.row_fixed');
-
- $row.toggleClass('odd1');
- $row_fixed.css('background-color', '#93F');
- $row_fixed.css('color','#FFF');
-
- });
- });
The idea is:
Case 1:
Case 2: