Forums

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

Home Forums JavaScript JS validation of form

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #205018
    AsteroidMonkey
    Participant

    Hi,

    I have a form which I am trying to validate with JS. Problem is for the life of me I can’t get it to work.

    Can anybody tell me where I’m going wrong?

    http://codepen.io/anon/pen/ZGRJEX

    Regards,
    Marc

    #205021
    Shikkediel
    Participant

    Seems to be basically working alright, what would be incorrect with it then? By the way, to check against an empty value you could also do :

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