To explain ahead one row is looking in this

<tr>
                        <td colspan="5"><table border="0">
                                <tr>
                                        <td>
<span>1</span>
</td>
<td></td>
<td></td>
</tr>
                        </table></td>
                </tr>

how filter this using youre codeing


On Jan 7, 6:53 am, "Vicky am" <vivekamar...@gmail.com> wrote:
> Hello Karl, Very good it works. Also how isay if td does not have table. one
> of my td has <table> and it should not higlite that. thanks.
>
>
>
> On Tue, Jan 6, 2009 at 1:03 AM, Karl Swedberg <k...@englishrules.com> wrote:
> > Hi Vicky,
> > You could try this:
>
> > $('tr:has(td)') ...
>
> > --Karl
>
> > ____________
> > Karl Swedberg
> >www.englishrules.com
> >www.learningjquery.com
>
> >  On Jan 5, 2009, at 7:17 AM, Vicky am wrote:
>
> > 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.- Hide quoted text -
>
> - Show quoted text -

Reply via email to