Toggle Shipping Address

In my application, i am able to hide the shipping address in my view
if a checkbox is checked. I want to add some text (paragraph) in the
shipping section. I could not figure out how to make this behave like
the form. I need this hidden too until the checkbox is marked. Is this
possible?

Test div.hide { display: none; }
Hello world

Note the style tag.

On Thu, Aug 25, 2011 at 5:34 PM, Allan M [email protected] wrote:

In my application, i am able to hide the shipping address in my view
if a checkbox is checked. I want to add some text (paragraph) in the
shipping section. I could not figure out how to make this behave like
the form. I need this hidden too until the checkbox is marked. Is this
possible?

You’ll probably want to do this in javascript. jQuery being the obvious
choice. It’s absolutely possible, but it’s not at all related to RoR
(unless
there’s some way to get that behavior within the framework, which I’m
unaware of).