Results 1 to 2 of 2

Thread: Javascript Form Verification Help!

  1. #1
    Join Date
    Jan 2008

    Javascript Form Verification Help!

    Hi, I am creating a website called allscriptsolutions.com but I lately I have run into some problems with the coding for the Order2.htm page. I am trying to create an order form that verifies the credit card information as well as the rest of the other fields but it seems that the submit button only verifies the credit card information. Is there a code that enables the submit button both verify the credit card and the rest of the other form fields?

  2. #2
    Join Date
    Oct 2006
    Ontario Canada
    get the element you want and check if it meets your needs.

    Here is a sample:
    function validate()
    	var username = document.getElementById("username").value;
    	if (username == "")
    		alert("No username was entered");
    <input type="text" id="username"/>
    <input type="button" value="Validate The above tag" onclick="validate()"/>

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