Skip to content

Validation ignores elements outside <form> but with form attribute #2156

Open
@robertmiles3

Description

@robertmiles3

Subject of the issue

The plugin does not validate elements that are outside of the <form> but have the form attribute on them.

Your environment

  • version of jquery-validate: 1.17.0
  • which browser and its version: Chrome 65, macOS

Steps to reproduce

See https://jsfiddle.net/robertmiles3/hpundyj5/4/

Expected behaviour

On submit, validation should fail for both inputs.

Actual behaviour

On submit, validation only fails for the input inside the <form>.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions