Make use of .not() to filter out elements, in your case $("table
tr").not('th') should give the wanted result.

On Mon, Jan 5, 2009 at 6:19 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.
>



-- 
Isaak Malik
Web Developer

Reply via email to