I have this simple for form:
<%= simple_form_for @user do |f| %>
<%= f.input :username, label_html: { class: 'my_class' }, hint_html: { class: 'hint_class' } %>
<%= f.input :age %>
<%= f.button :submit %>
<% end %>
I would like to take the values that the user enters to use as conditionals
Take a value of :age input or :username input. Take these two values given by the user without the user giving the submit button
I don't know if there is any way that rails allows to do that, or if not use a simple jquery.
If you could help me I would be very happy. Thank you very much