I'm using link_to_function with visual_effect to toggle a list down and up.
I would like to add { :class => 'mystyle' } to the link_to_function statement but don't see it accepts html_options based on the API.
Is there a work around of some kind to apply a css class style to a link created by link_to_function?
I think it will...
http://api.rubyonrails.com/classes/ActionView/Helpers/JavaScriptHelper.html#M000630
link_to_function("Show me more", nil, :id => "more_link") do |page| ..... end Produces: <a href="#" id="more_link" onclick="try { ....
The :id made it through in the right spot, so putting :class right there should also work I would think.
-philip