Placeholder for Captcha | Adobe Business Catalyst

<script>
$(document)
    .ready(function () {
        $('#CaptchaV2')
            .attr("required", true)
            .wrap('<div/>')
            .after("<small class='error'>Captcha is required.</small>");
        $('.contact-form .captcha')
            .find("input[type=text]")
            .each(function (ev) {
                if (!$(this)
                    .val()) {
                    $(this)
                        .attr("placeholder", "Enter text to verify");
                }
            });
    });
</scrip>

No comments:

Post a Comment