Answers for "show items on a form if checkbox checked"

5

if checkbox is checked

if ($('#id_input').is(':checked')) { }
Posted by: Guest on March-17-2020
0

if checkbox is checked open forms

<div class="form-group" id="checkbox">
        <%= f.check_box :paydeliver %>
        <%= f.label :paydeliver, "Pay $25" %>
      </div>

      <div id="delivery" style="display:none;">
        <div class="form-group">
          <%= f.label :addysdeliver, "Delivery address"%>
          <%= f.text_field :addysdeliver, class: "form-control"%>
        </div>
      </div>

      <%= f.submit "Go!", class: "btn btn-primary btn-large btn-block" %>

      <% end %> #end of form
Posted by: Guest on August-07-2021

Code answers related to "show items on a form if checkbox checked"

Code answers related to "Javascript"

Browse Popular Code Answers by Language