It is, at least in my FF 3.5.7 on Win 7, but I haven't the slightest clue as
to why. Thanks for sharing those demos.
On Wed, Jan 6, 2010 at 1:29 PM, Scott Sauyet wrote:
> On Jan 6, 3:44 pm, Acaz Souza wrote:
> > MooTools:http://www.jsfiddle.net/4vnya/
> > jQuery:http://www.jsfiddle.net/eFbwJ/
Thank you all for your helpful suggestions.
On Fri, Jan 1, 2010 at 2:37 PM, Karl Swedberg wrote:
>
> On Jan 1, 2010, at 3:53 PM, Michael Geary wrote:
>
> I wouldn't use either version.
>
> Instead, I would change your CSS from:
>
> tr.rowodd { background-color: #FFF; }
> tr.roweven { background-
Thank you. Have a great New Year.
2010/1/1 Šime Vidas
> Well, definitely the shorter version :)
> You can put a comment above to remind you that :even and :odd are
> tricky
>
> // Remember, :even and :odd are zero-based, so it's reversed
> $('#foobar tbody tr:visible:even').addClass('rowodd');
>
Thanks for your reply. Your solution works. I had a feeling that :even and
:odd filters are zero-based, but found that to be "odd" in this situation.
So now that I have 2 ways to stripe visible table rows using jQuery, which
solution do you prefer?
$('#foobar tbody tr:visible:even').addClass('
4 matches
Mail list logo