I want my recaptcha to appear only after user clicks submit button on the form.
How can I implement this? I am attaching my current implementation below..
_FORM FILE
<div class="actions">
<%= recaptcha_tags %>
<%= f.submit %>
</div>
<% end %>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well, I’d say you have to use javascript (jquery, etc.) for that. Your erb tags are already wrapped in a div with the class
actions. You could simply hide that in the beginning and place a button above/underneath the div and when the user clicks that you hide the button clicked on and show the ´.actions` div…