if checkbox is checked open forms

Solutions on MaxInterview for if checkbox is checked open forms by the best coders in the world

showing results for - "if checkbox is checked open forms"
Randall
08 Feb 2017
1      <div class="form-group" id="checkbox">
2        <%= f.check_box :paydeliver %>
3        <%= f.label :paydeliver, "Pay $25" %>
4      </div>
5
6      <div id="delivery" style="display:none;">
7        <div class="form-group">
8          <%= f.label :addysdeliver, "Delivery address"%>
9          <%= f.text_field :addysdeliver, class: "form-control"%>
10        </div>
11      </div>
12
13      <%= f.submit "Go!", class: "btn btn-primary btn-large btn-block" %>
14
15      <% end %> #end of form
16