Thanks Stephen, I suppose it's usually only doctors who say "your colon is
in the wrong place" ;), unfortunately it still doesn't work :(, I appreciate
your help though

2009/2/17 aquaone <aqua...@gmail.com>

> your colon is in the wrong place. (how often does one get to say that?)
> $("div.postSummary-teaser:odd").addClass("odd");
>
> stephen
>
>
>
> On Mon, Feb 16, 2009 at 15:31, morktron <m...@digiflip.tv> wrote:
>
>>
>>
>> Hi I'm just wondering whether it is possible to zebra stripe alternate
>> divs
>> with the same class name?
>>
>> The class name is .postSummary-teaser, I tried this:
>>
>> <script type="text/javascript">
>>      window.onload = function(){
>>    $("div:.postSummary-teaser(odd)").addClass("odd");
>> };
>>    </script>
>>
>> but no joy. I'm no Javascript programmer but it was easy to stripe
>> alternate
>> rows with a tutorial on the jQuerey site. There seems to be nothing about
>> using divs?
>>
>> The page in question is in development here:
>> http://www.digiflipconcepts.com/digiflip-v3/Rant-and-Rave
>>
>> Can anyone help? thanks
>> --
>> View this message in context:
>> http://www.nabble.com/how-to-zebra-stripe-divs--tp22048135s27240p22048135.html
>> Sent from the jQuery General Discussion mailing list archive at
>> Nabble.com.
>>
>>
>

Reply via email to