On Feb 15, 2011, at 4:35 PM, pipplo wrote:

Lets ignore the 'editable' form part.  In general how would I hide/
show a div on a button click for instance?

If you have prototype.js in your page (Rails default) then you just do this in JavaScript:

$('elementId').hide();

or

$('elementId').show();

I don't think there are (ore need to be) Rails helpers for these...

Walter

--
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@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to