Results 1 to 2 of 2

Thread: Really Simple JavaScript Form Validation - Please Help!

  1. #1
    Join Date
    Mar 2013

    Really Simple JavaScript Form Validation - Please Help!

    Hello everyone!

    I am praying that someone can give me a little guidance with this... I know this is a very, very simple task, but I am completely new to all of this and very, very confused.

    Okay, so anyway. What I am trying to do is create a very basic html/javascript form that will appear sort of like this:

    Enter Integer Number (0-99):
    Enter Real Number (0.0-10.0):
    Enter String:

    Submit Button

    And then if the user inputs everything correctly, the screen will display this:

    Integer Number = (whatever number they entered)
    Real Number = (whatever number they entered)
    String Length = (the number of letters in the word they entered)


    But if the user made an error while filling out the form (i.e. whatever they put in the first box isn't an integer from 0-99, or whatever they put in the "Enter String:" box wasn't letters, etc.), then I need to have an error alert box appear.


    That's all I need to figure out, and I literally am so lost that I don't even know where to start any help would be GREATLY appreciated! Thank you so much!!

  2. #2
    Join Date
    Dec 2012
    NSW Australia
    Quote Originally Posted by sallydraper View Post
    ...... don't even know where to start any help would be GREATLY appreciated! Thank you so much!!
    Sure thing..

    As you have not included any HTML or JavaScript it would seem you need to learn the basics first.

    First you need to know HTML and Forms...

    A better site when you have the basics...

    Once the html is mastered JavaScript is next so meander on over to..

    he will keep you on the straight and narrow....

    Finally when all that is working well, try here for a little validation...

    A search will find plenty of others to choose from...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center