Hi,
I'm trying to develop a script to validate a form's input. The difficulty is that I want to make the script work for different pages. The content of the pages changes. If I make a regular validation I have to make a new one for every page because the fields change. So here's what I want to do:
I want to access a kind of array of input fields on the page
something like:
for (x = 1 to document.form.input.count){
if (document.form.input.name.value == ""
then blabla
}
Is this possible in any way?
Thanks,
Steven
I'm trying to develop a script to validate a form's input. The difficulty is that I want to make the script work for different pages. The content of the pages changes. If I make a regular validation I have to make a new one for every page because the fields change. So here's what I want to do:
I want to access a kind of array of input fields on the page
something like:
for (x = 1 to document.form.input.count){
if (document.form.input.name.value == ""
}
Is this possible in any way?
Thanks,
Steven