Hey there,

[EMAIL PROTECTED] a écrit :
> I'm trying to approach this by changing the ID for the div and then
> calling the getCalendar function again but I'm running into
> difficulties.

It's going to be hard to be *less* specific than that.

OK first, technically, '2007-2' is not a valid ID, although your browser
likely accepts it.  IDs should start with a letter or underscore,
according to spec.

Aside from that, $('yourId') will get you the element, and you can
change its id property.  For instance, say you have an item 'cal2007_2'
and want to change it to 'cal2007_3':

$('cal2007_2').id = 'cal2007_3';

That should cut it.  BTW, are you sure you need to have the current
month in the ID?  Can't you store it somewhere else, and keep your
calendar element's ID stable?

-- 
Christophe Porteneuve a.k.a. TDD
"[They] did not know it was impossible, so they did it." --Mark Twain
Email: [EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to