WordPress.org

Support

Support » Plugins and Hacks » Contact Form Clean and Simple » [Resolved] Valid HTMl5 – Easy fix

[Resolved] Valid HTMl5 – Easy fix

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author megnicholas

    @megnicholas

    Hi there.

    Unfortunately I can’t take out the ‘for’ attributes as the form validation jquery script requires it to be there.

    Hi Meg,

    Thanks for the quick reply.

    Found a fix.

    in jquery.validate.contact.form.js

    Change :
    $errele = $form.find("div[for='cscf_" + name +"']");

    to

    $errele = $form.find("div[id='error_cscf_" + name +"']");

    And then in contact.form.view.php

    change spans from

    for="csrf_email"

    to

    id="error_csrf_email" etc

    All the best

    Jon

    Ignore that. It doesn’t work as hoped! Will keep trying!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Valid HTMl5 – Easy fix’ is closed to new replies.
Skip to toolbar