Just copy and add red & blue code
Add this before end of head tag
<script type="text/javascript" src="https://www.google.com/recaptcha/api.js"></script>
<script type="text/javascript">
var onloadCallback = function() {
grecaptcha.render('html_element', {
'sitekey' : 'YOUR SITE KEY'
});
};
</script></head>
Next add this after form tag
</form>
<div id="dmxReCaptcha2" class="g-recaptcha" data-sitekey="YOUR SITE KEY"></div>
<script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit"
async defer>
</script>Next add this after html tag
</html>
<script type="text/javascript">
function my_button_click_handler() {
var recaptcha = $("#g-recaptcha-response").val();
if (recaptcha === "") {
alert("Please check the recaptcha");
return false;
}
return true;
};
</script>Thats it