1

is there anyway for refreshing BotDetect captcha by javascript? something like what refresh button on captcha module does!

refresh button on BotDetect captcha

i tried to find and trigger the refresh link by using following code:

var reloadLink = $("#ExampleCaptcha_ReloadIcon");
            reloadLink.trigger('click');

but it didnt work. im using ASP.NET MVC 5

2 Answers 2

1

Try using

$('.BDC_ReloadIcon').trigger('click');

Sign up to request clarification or add additional context in comments.

Comments

1

Try this:

const captcha = $('#botdetect-captcha').captcha({ captchaEndpoint: 'simple-captcha-endpoint.ashx' });

And where you need - captcha.reloadImage();

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.