View Complete Thread | FoxWeb Forum Home
Search:
Date:    Msg ID:   
From:    Thread:   
Subject:   
I need to validate a form value before the user clicks submit in order to prevent a long file upload when a required password is incorrect.
 
For validating dates and amount ranges I use a javascript function called validate in some of my forms.
 
The form line contains onsubmit="return validate()"
 
Is there some way to load a value (such as the password that I need to check) into a variable that javascript can access so that I can write code in my validate function to check it against the value in a text input field?
 
Thank you very much.
 
Jeff