Hello Billy, Thanks for the replying. I cannot change html whcih is to be
<th> inside <tr>. I cannot use <thead> as i get html from server control and
it prodoces th inside tr :(

On Mon, Jan 5, 2009 at 5:17 PM, Billy <billy.m...@gmail.com> wrote:

>
>
> 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.
>

Reply via email to