jeffl183
08-17-2003, 04:43 PM
In order to create a more user-friendly form, I put logical chunks of the form into layers <div>s and then set their visibility, based on other events. (The layers are nested inside the form.)
That works fine, but I'm having trouble validating the form data. My intention was to validate one layer at a time, and then move on to the next.
I'm a newbie, with regard to using the DOM, and testing something like "document.formName.inputName.value == "" is throwing a JavaScript error, indicating that the above is not an object.
Any suggestions how I retrieve values in this context?
Thanks!
That works fine, but I'm having trouble validating the form data. My intention was to validate one layer at a time, and then move on to the next.
I'm a newbie, with regard to using the DOM, and testing something like "document.formName.inputName.value == "" is throwing a JavaScript error, indicating that the above is not an object.
Any suggestions how I retrieve values in this context?
Thanks!