Regenerating captcha when the form is invalid

In the following form, click the Submit button to see the new captcha is generated.


The example uses a very simple captcha generation which is a sum operation of two random numbers. In reality, it's recommended to use the popular Google's reCaptcha service

Related validators

The following validators might be useful to you.