简体   繁体   中英

How to hide recaptcha at new page after form submission

I don't need the recaptcha to appear on the new page after the user has submit the form, as it might look unsightly and confusing on the webpage. How can I do that? with Javascript .

I don't need to reset the recaptcha as what other solutions show. I just don't want it to appear. Pls help!!

After form submit page

Since you have only supplied an image of the results of your submission, I don't know what modifications would be required to your script.

One suggestion might be to save a flag to local storage that would be checked when the page is reloaded after a successful submission. You might save the date and time and decide if the 'recaptcha' is to be displayed or not based on a sufficient time lapse. There is also a session storage option, but again without knowledge of your attempts, I don't know if that would satisfy your requirements. Cookies might be a last option, but some browsers have the ability to inactivate (not save) cookie information which might be critical to your display technique.

如果您使用的是 JQuery,则可以通过添加$('#captcha_id').css('display', 'none')或使用 class $('.captcha_class').css('display', 'none')

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM