Hide error message when generate new captcha image.

2 posts, 1 answers
  1. Alexanders
    Alexanders avatar
    5 posts
    Member since:
    Dec 2012

    Posted 24 Sep 2013 Link to this post

    Hello,

    I have RadCaptcha on my page with enabled "Refresh Captcha Image Functionality" but there is one thing if I type wrong captcha I receive error message that's correct then I click on 'Generate new image' and error message still visible but should not be visible because I generate new captcha Image. How can I hide error message when I click on Generate new image link?

    Regards.
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 24 Sep 2013 Link to this post

    Hi Alexanders,

    Please try the following code to hide the RadCaptcha ErrorMessage on clicking the refresh captcha link button.

    JavaScript:
    <script type="text/javascript">
        $telerik.$("#CaptchaCode_CaptchaLinkButton").click(function () {
            $telerik.$("#CaptchaCode_ctl00").hide();
        });
    </script>

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top