Skip to content

showLabel appends "for" attr regardless of errorElement type #1089

@pranavkm

Description

@pranavkm

"for" attributes are meant to be valid for label types. This works fine for the default config that jquery-validation uses. However if the errorElement is changed, it's no longer producing correct HTML.

https://github.com/jzaefferer/jquery-validation/blob/master/src/core.js#L722-L723

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions