Hi guys,
Another question from me, sorry :-)
I have a webpage with multiple forms in it but where some fields have the same name. Only one form can be used at a time.
I'm making a script that performs a check on the form. But instead of using a checkfunction for every form, I would like to use a single check which can be performed at the active form.
Right now I'm using something like this:
I would like to change the FORMNAME to something that can be used universally. I was thinking about using THIS.FORM but that doesn't work.
Anyone have any ideas on this?
Thanks,
Cainnech
Another question from me, sorry :-)
I have a webpage with multiple forms in it but where some fields have the same name. Only one form can be used at a time.
I'm making a script that performs a check on the form. But instead of using a checkfunction for every form, I would like to use a single check which can be performed at the active form.
Right now I'm using something like this:
Code:
if (window.frames["content"].document.FORMNAME.day.value="")
{
alert("Date has not been filled in.");
break;
}
Anyone have any ideas on this?
Thanks,
Cainnech
Comment