Losing table zebra stripes after ajax load()
table stripes are init with ... $("tbody tr:nth-child(even)",$context).addClass("even");
The event function for a click on a <th> loads sorted data ...
$('tbody',$context).load("Grid.ajax.php?grid_id="+$grid_id+"&orderby="+this.title);
The striping is lost ... I tried adding the same statement after the load() with no change.
#1 ... What is the best practice for restoring the stripe effect other than doing it on the server.
#2 ... Should I call ".empty()" before an ajax request to protect against garbage left in memory?
#3 ... I also have a row highlighting functions for mouseover/mouseout events. Can I assume the ".live()" event definition should apply to rows added after an ajax request.
Thanks for any help... John