Re: Form Validation

message from limeybloke on 19 Jul 2004
yep, thats fine, but I also want to ensure they enter the minimum number of characters too>?
any ideas>
 
Mick White replied to limeybloke on 19 Jul 2004
I'm not sure you can do that with Jaro's extension.
<script>
function entryLength(entry,min,max){
return entry.length >= min && entry.length <= max
}
</script>
<input type="password"
onchange="if(!entryLength(this.value,4,8)){alert('oops')}"

To add this to Jaro's function, I'd have to see it first.
Could you post a copy? And let me know the "name" of your password field?
Another limey.
Mick

limeybloke wrote:
 

Archived message: Re: Form Validation (Macromedia Dreamweaver Web Design)