Archive: http://www.houseoffusion.com/lists.cfm/link=i:4:166634
---
I use some _javascript_ validation for one page where users can change account
information.
I want to add a validation that alerts them if the password is less than 6
characters long
I have this but it doesn't work. Here's the chunk I added- any ideas why
this doesn't work? I've tried it 2 different ways
1. like this where the theform.Password.length
2. I set as a var Pass=theform.Password
var=Passlength=Pass.length
thanks,
j
if (theform.Password.length<6){
alert("The password must be at least 6 characters
long.")
theform.Password.focus()
return false;
}
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- RE: ot-quick javascript question Janine Jakim
- RE: ot-quick javascript question Katz, Dov B (IT)
- Re: ot-quick javascript question jjakim
- Re: ot-quick javascript question Ray Champagne
- RE: ot-quick javascript question Pascal Peters