code_junkie

Using jQuery to Highlight Selected ASP.NET DataGrid Row

Nov 11th, 2011
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. var $activeRow;
  2.  
  3. $('#myGrid tr').click(function() {
  4. if ($activeRow) $activeRow.removeClass('active');
  5. $activeRow = $(this).addClass('active');
  6. });
  7.  
  8. $('.toggledClass').removeClass('toggledClass');
Add Comment
Please, Sign In to add comment