[jQuery] Re: row highlite in jquery

2009-01-07 Thread Vicky am
thanks for you are knowledge and the best :) On Wed, Jan 7, 2009 at 9:55 PM, Karl Swedberg wrote: > Yes, it can be done. I'm not sure if you're now trying to select rows or > cells or both, though. > Here is a way you can select rows that have descendant TDs but don't have > descendant TABLEs: >

[jQuery] Re: row highlite in jquery

2009-01-07 Thread Karl Swedberg
Yes, it can be done. I'm not sure if you're now trying to select rows or cells or both, though. Here is a way you can select rows that have descendant TDs but don't have descendant TABLEs: $('tr').filter(function() { return $('td', this).length && !$('table', this).length; }); --Karl

[jQuery] Re: row highlite in jquery

2009-01-07 Thread vivekamar007
Very good help..can i join two condition? $('td:not(:has(table))') and $('tr:has(td)') ... On Jan 7, 10:28 am, Karl Swedberg wrote: > On Jan 6, 2009, at 8:53 PM, Vicky am wrote: > > > Hello Karl, Very good it works. Also how isay if td does not have   > > table. one of my td has and it shoul

[jQuery] Re: row highlite in jquery

2009-01-06 Thread Karl Swedberg
On Jan 6, 2009, at 8:53 PM, Vicky am wrote: Hello Karl, Very good it works. Also how isay if td does not have table. one of my td has and it should not higlite that. thanks. Hi Vicky, How about this? $('td:not(:has(table))')

[jQuery] Re: row highlite in jquery

2009-01-06 Thread vivekamar007
To explain ahead one row is looking in this 1 how filter this using youre codeing On Jan 7, 6:53 am, "Vicky am" wrote: > Hello Karl, Very good it w

[jQuery] Re: row highlite in jquery

2009-01-06 Thread Vicky am
Hello Karl, Very good it works. Also how isay if td does not have table. one of my td has and it should not higlite that. thanks. On Tue, Jan 6, 2009 at 1:03 AM, Karl Swedberg wrote: > Hi Vicky, > You could try this: > > $('tr:has(td)') ... > > > --Karl > > > Karl Swedberg > www.en

[jQuery] Re: row highlite in jquery

2009-01-05 Thread Karl Swedberg
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 inside . I cannot use as i get html fr

[jQuery] Re: row highlite in jquery

2009-01-05 Thread Vicky am
Hello Billy, Thanks for the replying. I cannot change html whcih is to be inside . I cannot use as i get html from server control and it prodoces th inside tr :( On Mon, Jan 5, 2009 at 5:17 PM, Billy wrote: > > > You could try coding your table more specifically like this: > > > > > my

[jQuery] Re: row highlite in jquery

2009-01-05 Thread Billy
You could try coding your table more specifically like this: my header content my body content 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 highli