Page 1 of 1

getting the form data?

Posted: Mon Sep 18, 2006 12:52 pm
by saumya
Hi,
here is my situation :
1. I have a form named "registration"
2. In a javascript function I got the number of form elements through

Code: Select all

var max=document.registration.length;
But I could not get values of each elemt on the form.
I tried

Code: Select all

var max=document.registration[0].value;

Posted: Mon Sep 18, 2006 2:21 pm
by feyd
document.forms['formName'].elements['elementName']

Posted: Mon Sep 18, 2006 2:39 pm
by saumya
Thank you so much.