[jQuery] Re: Changing colour of table rows

2009-02-24 Thread heohni
painful! OF COURSE :-) THANKS!! On 24 Feb., 14:20, jQuery Lover wrote: > That is because you have and asked for > #resultslist. This should work: > > $('.resultslist tbody tr').length > > > Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com > > On Tue, Feb 24, 2009 at 6:14 PM,

[jQuery] Re: Changing colour of table rows

2009-02-24 Thread jQuery Lover
That is because you have and asked for #resultslist. This should work: $('.resultslist tbody tr').length Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Tue, Feb 24, 2009 at 6:14 PM, heohni wrote: > > Sorry, but it returns only 0...? > > On 24 Feb., 14:07, jQuery Lov

[jQuery] Re: Changing colour of table rows

2009-02-24 Thread heohni
Sorry, but it returns only 0...? On 24 Feb., 14:07, jQuery Lover wrote: > > Is there a way to count the rows of a specfic< table > > class="resultslist"> or even better the TR elements of the  of > > #resultslist? And how do I know on what row I am currently are when a > > checkbox was clicked?

[jQuery] Re: Changing colour of table rows

2009-02-24 Thread jQuery Lover
> Is there a way to count the rows of a specfic< table > class="resultslist"> or even better the TR elements of the of > #resultslist? And how do I know on what row I am currently are when a > checkbox was clicked? Use this code to find out how many table rows are there in the table: $('#resul