$(''event_3'').addClassName(''someClassName'')
On Jan 11, 8:23 am, Tarscher
<tarsc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi all,
>
> When a user clicks the link_to_remote ''trash.gif'' (last
span) I want
> to apply a certain stylesheet class to the event_3 div
>
> how can I do this?
>
> Thanks
> Stijn
>
> <div id="event_3">
> <span><b><%=link_to(h(event.summary), event_path(event))
%></b></
> span>
> <span class="info">
> op <%= event_date(event) %>
> om <%= event_time(event) %>
> </span>
> <span>| <%=link_to_remote "aanpassen",
> :url => edit_event_path(event.id),
> :method => :get %>
> </span>
> <span>| <%=link_to_remote
image_tag(''trash.gif'', :border => "0"),
> :url => event_path(event.id),
> :method => :delete,
> :confirm => ''Are you sure?'' %>
> </span>
> </div>
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---