On Aug 29, 9:37 am, "Franz Strebel"
<franz.stre...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Greetings folks,
>
> Does anyone know how I can modify a DOM element''s
> class on the fly via AJAX? Is this even possible?
>
> I basically want to toggle a background color after the
> user updates a pass/fail attribute on one of my models.
>
Use prototype addClassName, removeClassName, toggleClassName utilities
or just fiddle with the element''s className directly
Fred> Thanks in advance.
>
> Regards,
> Franz
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---