You could try coding your table more specifically like this:
<table> <thead> <tr> <th>my header content</th> </tr> </thead> <tbody> <tr> <td>my body content</td> </tr> </tbody> </table> Then in your jQuery code do: $("table tbody tr") Hope that helps :) On Jan 5, 9:18 am, vivekamar...@gmail.com wrote: > Hello, > > I have following poblem > > to highlight row, i use followin jquery > > $(document).ready(function() { $("table tr").css > ({ background:"#eeeeee" }).hover( > function() { $(this).css({ background: > "#DE2211" }); }, > function() { $(this).css({ background: "#eeeeee" }); } > ); }); > > problem is it highlight every row even header on hovering..is there > way to not highlight <th> only,,can i add condition that if table tr > is th then background is #eeeeee..i want to do without class > > pls perdon my english.