Reputation: 788
I'm getting an Uncaught Type error from my JavaScript Validation. Here is the javascript file: http://pastebin.com/hH3vvFTS
and here is the associating HTML: http://pastebin.com/mXHxfxiJ
The full error is:
Uncaught TypeError: Cannot read property 'value' of undefined validation.js:38
pwMatchVal validation.js:38
validateForm validation.js:5
onsubmit account.html:362
any help is appreciated !
Upvotes: 1
Views: 10496
Reputation: 1238
Your problem is that you have several forms with the same name, so when you access it like this: document.forms
, ['Form']
will return you to the first page in.
Upvotes: 5