Hello,
I would like to know if there's a funcion or a simple way to retrieve an array of all forms field present in a form.
I've a form made of 20 field and want to reset all using a function instead of reset button; the reason is that the form can take parameters from session's variables but sometime I need to force the cleaning.For now I've done form.field1.value = "", form.field2.value = "" .... and so on bu since I would like to use that function for other forms I just ask myself if there's a way to take all the fields and then with a for cycle to clean them all.
Thanks
Paolo
Retriving an array of all form
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact: