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

Home Forums JavaScript Form Validation After Submit

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #163862

    This is my codepen:
    This is the form in action:

    Due to the onblur/onfocus values I added, the text fields’ default text should be cleared whenever a use clicks on the input field. This works.

    However, when I hit the send button without filling anything in, the form is no longer cleared on click. Strangely, this only occurs on my site (the in action example). It works correctly on Codepen.

    Does anybody know what the difference here may be?


    This has been solved, I was calling the jQuery too late.

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