• Hi folks,

    Another (hopefully!) quick one. I have checked my page with the W3 validator it reports the following error:

    Line 260, Column 42: The for attribute of the label element must refer to a form control.

    <label for=’message-27′ class=’message’>Your Message (required)</label>

    I think the relevant Grunion plugin line is

    $r .= "\t\t<label for='name-$id' class='name" . ( in_array( 'comment_author', $errors ) ? ' form-error' : '' ) . "'>" . __( 'Name (required)' ) . "</label>\n";

    Any idea how to fix it!!?

    Many thanks!

Viewing 1 replies (of 1 total)
  • Thread Starter edmunduk

    (@edmunduk)

    sorry- relevant code:

    $r .= "\t\t<label for='message-$id' class='message" . ( in_array( 'comment_author_email', $errors ) ? ' form-error' : '' ) . "'>" . __( 'Your Message (required)' ) . "</label>\n";

Viewing 1 replies (of 1 total)
  • The topic ‘Grunion Form not validating…’ is closed to new replies.