Skip to content

Trigger invalid input after remote api call #23

@jeprojects

Description

@jeprojects

I am trying to trigger an invalid input when I get a response from the server side after signup.

For example:

  1. User signs up with [email protected]
  2. Server replies with "email already taken"
  3. trigger "[name=email]" input and show custom dynamic message "Email already taken"

I found a way to do it directly with jquery validator plugin (https://jqueryvalidation.org/Validator.showErrors/), but it doesn't look as nice.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions