Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get right form

Status
Not open for further replies.

aigarzzz

Programmer
Apr 5, 2006
16
LV
i have many forms and when i want get some form values i cant do that:
function updateForm(id)
{
.....
document.forms.id;
.....
}
in this function i pass id parameter which form i must process, but there is no allowed document.forms.id construction, because id is variable. How can i get right form through variable?

 
Possibly - I'd start another thread for that, as it's an entirely different question to the one you started this thread for.

I'm assuming, of course, that the code I gave you worked?

Dan



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
My money's on
Code:
document.forms[id]
...judging by the syntax used in the orig. question.

Good catch Dan. [thumbsup2]




I hope this helps;
Rob Hercules
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top