Posts: 3,572
Location: in a distant land far away from reality
|
hi,
i got a page wherein i will have 2 forms.
in these 2 forms there will 1 common field.
like 1st form will have a checkbox with the name chkbox
second will also have the same name chkbox
now both these fields are mandatory. they have to be filled in.
now when i am validating the form, i want to give a single code and not say
"document.formname.fieldname.xxx"
instead i want to finish it off like
"document.form.fieldname" or document.fieldname.
i am looking for a single line code and not multiple where in i have to give the form names, cos in the near future there may be multiple forms in the page having same fields.
so then this process becomes little tedious.
any idea how to go abt this?
|