hello, I am trying to display a Textarea if a user checks the checkbox and hides the textarea if the checkbox is not clicked. I can get the display working properly, however the actual checkbox is not actually checking. It is staying blank (not checked) no matter how many times I click it. Here is my code
<%= check_box "event", "has_policy", "onclick" => "Effect.toggle('policy'); return false;" %> <label class="choice" for="lbl3">Yes I want add a policy/terms agreement</label>
<div id="policy" style="display:none;"> <div> <%= form.text_area :policy_a, :id=> 'field19', :cols => 50, :rows => 10, :class => "medium" %> </div> </div>