Jump to content

validation for text input in javascript


shir11

Recommended Posts

Allowing everyone to see your validation code is problematic.

In what way?

 

It's not really meant to be a secret, you usually are telling them outright to only put between two and six digits.

 

As long as there is also validation on the server-side there is no problem at all. Client-side validation makes the process quicker for the user.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...