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

DAkbariSE
  • 151
  • 1
  • 13

2 Answers2

1

Try using

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

Muhammad Taqi
  • 305
  • 2
  • 6
  • 19
0

Try this:

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

And where you need - captcha.reloadImage();

marnikka
  • 1
  • 1