Simple Blind Up-Down


/ Published in: Ruby
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.