Yes, perfect! Thanks!
On Dec 3, 6:00 pm, "Jeffrey Kretz" <[EMAIL PROTECTED]> wrote:
> I would recommend your elements having two classes. One which stays the
> same, and the second one which changes.
>
> e.g.
>
> <div class="jcalendar calendar0"></div>
> <div class="jcalendar calendar1"></div>
> <div class="jcalendar calendar2"></div>
> <div class="jcalendar calendar3"></div>
>
> Then you could grab it with
>
> $('div.jcalendar');
>
> JK
>
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On
>
> Behalf Of light-blue
> Sent: Wednesday, December 03, 2008 5:40 PM
> To: jQuery (English)
> Subject: [jQuery] Targetting .class-0 .class-1 .class-2 .class-3
>
> This is a beginner question. Does anyone know how to target
>
> $('.jquery-calendar-0')
> $('.jquery-calendar-1')
> $('.jquery-calendar-2')
> $('.jquery-calendar-3')
> etc...
>
> I need to run the following, where X is the number, but I don't know
> how many X exist until after the page renders.
> $('.jquery-calendar-X').calendar( {stuff} )
>
> I can't find the solution in Learning Jquery (Chaffer and Swedberg),
> at least not in Chapter 2 How to Get Anything You Want. ;-)
>
> Thanks!