Sunday 19 April 2015

select n th row of table using jquery

  1. $(document).ready(function(){  
  2.   
  3.    //select the second row of table and change font color to red  
  4.    $('table tbody tr:nth-child(2)').css('color','red');  
  5.   
  6. });  

No comments:

Post a Comment