Guest User

Untitled

a guest
Jan 14th, 2013
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     $(document).ready(function(){
  2.             $("table#report1.report > tbody > tr:odd").addClass("odd");
  3.             $("table#report1.report > tbody > tr:not(.odd)").hide();
  4.             $("table#report1.report > tbody > tr:first-child").show(
  5.             );      
  6.             $("table#report1.report > tbody > tr.odd").click(function(){
  7.         if(!$(this).next("tr").hasClass('shown'))
  8.         {
  9.                   $(this).next("tr").show();
  10.           $(this).next("tr").addClass("shown");
  11.               }
  12.         else
  13.         {
  14.           $(this).next("tr").hide();          
  15.           $(this).next("tr").removeClass("shown");
  16.         }
  17.       });
  18.             //$("#report").jExpand();
  19.         });
Advertisement
Add Comment
Please, Sign In to add comment