getting the form data?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
saumya
Forum Contributor
Posts: 193
Joined: Sun Jan 30, 2005 10:21 pm

getting the form data?

Post 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;
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

document.forms['formName'].elements['elementName']
saumya
Forum Contributor
Posts: 193
Joined: Sun Jan 30, 2005 10:21 pm

Post by saumya »

Thank you so much.
Post Reply