Forums

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
    Posts
  • #163862
    siouxfan45
    Participant

    This is my codepen: http://codepen.io/anon/pen/oHLEm
    This is the form in action: http://themeforward.com/demo2/contact/

    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?

    #163864
    siouxfan45
    Participant

    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.