title: Change the color of the line select in datatables using jquery
body: <p>I have a datatable with lines and i would like when i click on a row i would like to change background-color: red from the select line and the other lines i would like to leave with a background-color: white</p>
  
  <p>I try with this : </p>
  
  <pre><code>$(document).on('click', "#table_user tr:not(:first) td:first-child", function() {
  var row_num = parseInt( $(this).parent().index() )+1; 
   if(row_num == $(this).closest('tr').index()+1){
  
            $(this).css({'background-color':'red'});
          }else{
            $(this).css({'background-color':'white'});
          }
  });
  </code></pre>
  
  <p>But it does not work  </p>