Posted By

tjstankus on 07/27/06


Tagged

rails ruby


Versions (?)

Who likes this?

10 people have marked this snippet as a favorite

trickychicken
idiotkings
episod
rduv
bbebop
Firanide
bordalix
tmarkiewicz
tkmr
webstic


Simple Blind Up-Down


 / Published in: Ruby
 

The key here is display:none being in the style attribute of the affected div. It will not work if it's in a separate CSS file.

  1. <%= link_to_remote 'Privacy Policy',
  2. { :update => 'privacy-policy',
  3. :complete => visual_effect(:toggle_blind, 'privacy-policy'),
  4. :url => { :action => 'privacy_policy' } },
  5. { :class => 'text-link' } %>
  6. <div style="display:none" id="privacy-policy"></div>

Report this snippet  

You need to login to post a comment.