The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Validation Class Does not Remove from Text Box

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #165408

    Here is my code:

    You will notice the form validates by adding the class .error to the inputs, this produces a red border.

    Here’s my problem – when a user fails to type in the required boxes, the .error class is added correctly. When a user corrects their mistake by typing in a box, the red border from the .error class should be taken away. This works, except for the “Message” box. When a user enters something new, the red border remains.

    I’m not sure why this only happens with the message box. Any help?

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.