I’m trying to create an already-filled out form that will be checked on-load.
Current settings are set for onblur and on keyup.
But when I tried to do
pass1.load(validatePass1);, it didn’t work.
Here’s a jsfiddle: http://jsfiddle.net/8s3Hp/
Thanks everyone!
In this soultion, http://jsfiddle.net/8s3Hp/3/, you will see that your two validation functions are called at the end of the ready function
Your validation is now triggered onload.
Another thing preventing the demo from working was that the
formvariable was not initialized, this prevented any following code from executing. I have also corrected this in the demo and you should find it working as expected.