evaluate button array by each member

B

bbxrider

before calling a validation function i assign a custom property to the form
elements
to determine if its a required field
this.form.xxx.req=true
if its a button i assign to all the buttons for that name
this.form.xbutton[0].req=true
this.form.xbutton[1].req=true...........

the validate function is called with 'this.form',
validate(this.form)
validate(f)...................................
then i use f.name, f.value, etc

but i can't figure out how to access the radio buttons as array members in
the validate function
f.xbutton[x] - doesn't work
self.document.forms[x].elements[x].name[x] - doesn't work either

seems simple but i'm obviously missing something
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,079
Messages
2,570,573
Members
47,205
Latest member
ElwoodDurh

Latest Threads

Top