Frederick Cheung wrote:
> On Apr 18, 5:10�pm, Marika Ahonen <[email protected]>
> wrote:
>> <div id="link_long_<%= link.id %>" �style="display:none">
>> <%= link.long %>
>> </div>
>>
>> How can I pass a link id with something like this:
>>
>> � � � <%= link_to_function "+", "link_long_id".toggle(), :style =>
>> 'text-decoration:none' %></td>
> 
> well assuming the link had id 23, the javascript you'd want to
> generate would be $('link_long_23').toggle() - just build up that
> string, using the usual string interpolation stuff for example
> 
> Fred

Yes, but how can I pass link_long_id instead of giving the link_long_23? 
I can't get that working :(
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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 [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-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to