Validating javascript

Next, we use regular expression and the test() method to check the field for a compliance.

validate Password ( ) The function below checks the password field for blankness and allow only letters and numbers - no underscopes this time.

validate Email ( ) Next we want to see if the email address the user entered is real.

This means that the input data must contain at least an @ sign and a dot (.).

So we should use a new regular expression to forbid underscopes. Next, we want to permit only passwords that contain letters and at least one numeral.

For that we use the seacrh() method and two more regular expressions: /(a-z) / and /(0-9)/.

Leave a Reply

Your email address will not be published. Required fields are marked *

One thought on “validating javascript”

  1. Saranghae :-) You're so great and very talented, can't wait to see you in your new project. Even though I liked her in Lie to me and My Fair Lady the plots were not that great. the first time I saw you in drama titled "My Fair Lady" I really admired you a lot... I guess you don't have something good to do or something worthwhile to do.. Congratulations Yoon Eun Hye for winning 2nd place. I'd love to see you together w/ Hyun Bin plssssss consider a movie w/ him.

  2. Whether you're looking for gay sex sites, lesbian sex sites, black sex sites, asian sex sites, cougar sex sites, or nsa sex sites - you can find all of those things and more on Adult !

  3. To help you find more potential matches and members near you, your profile will be also be displayed on other general chat sites that are part of the Online Connections chat network at no additional charge.