[Solved] Why validation for password field validation not working?


first of all stop using return from event handler.
convert your code to

<form ... onsubmit="validate(event,this)">

change your function to validate(event,form);

wherever you feel form should not be submitted..
write :

event.preventDefault()

instead of return false

Demonstration :
http://codepen.io/anon/pen/kGmeL

7

solved Why validation for password field validation not working?