#7 new
Tim

Max-length

Reported by Tim | March 11th, 2012 @ 07:13 AM

GREAT CODE!!! Very simple to understand,read,implement. THANK YOU SOOOOO MUCH!

I downloaded and implemented the basic js code from your website one day ago.

I noticed when I used the max-length parameter say for 5 the error message would fire when 5 characters were used.

I am not sure that is how you intended it, but that does not work the way I would have expected. My example would be a USA postal code.

I want the input to be numeric min-length_5 max-length_5 therefore if it is less then 5 it fires the minimum error more than 5 it fires the maximum error and exactly 5 no error fires.

I looked at the code and notice it was missing the = sign. so it was {return B.length<D[0] ...... but in my case for it to work properly I changed it to {return B.length<=D[0]

Let me know your thoughts.

Thank you.

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Validatious 2.0 JavaScript form validation component

People watching this ticket

Pages