Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Max-length

#7

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.

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

State: new
Milestone: none
Assigned to: nobody

Activity

No comments yet.

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.