Skip to content

why repeat your self in signup.js #31

Description

@Walidmash

password.style.border = '1px solid #0F0';

you could make a class for error case , and then added and remove it while validation,
so you can have multiple styles for error case
password.classList.add = 'error';
or
password.classList.remove = 'error'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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