I came across the problem, I'm using reCAPTCHA to protect against spam bots. The problem is that when user enters wrong characters or leaves captcha blank, it echoes an error message. it also refreshes the page and all information that was entered by a user is lost. My question is, how to show reCAPTCHA error message without page refresh? e.g. an alert box or even better a hidden error div that displays if wrong captcha was entered.I came across the problem, I'm using reCAPTCHA