Tuesday, 20 August 2013

How to hide submit_tag button

How to hide submit_tag button

I have an simple form:
<%= form_tag icd_test_path, :method => 'get', remote: true do %>
<%= hidden_field_tag(:sicherheit) %>
<%= hidden_field_tag(:id) %>
<%= submit_tag "", :id => 'Scomit' %>
<% end %>
How you can see both text_fields are hidden, now search an way to hide the
submit_tag as well?It want the form hidden because its only triggerd by
jquery!

No comments:

Post a Comment