What is T1? Is that the name of a specific element? Do you have multiple elements named T1?
If you know the name of an element, you can do: var myVar = document.forms[formName].elements[elementName].value Chris Tifer http://www.emailajoke.com ----- Original Message ----- From: "Mario Lopes" <[EMAIL PROTECTED]> To: "ActiveServerPages" <[EMAIL PROTECTED]> Sent: Sunday, October 20, 2002 4:32 PM Subject: Re: javascript form element arrays - grrrrr > Hi > I have several textboxes in a form named form1. > How can i access a specified one ? > I tried this code but he gives me an error > > > <SCRIPT LANGUAGE="Javascript"> > <!-- Beginning of JavaScript - > function teste(index){ > svalue=document.form1.T1[index].value; > alert(svalue); > } > > // - End of JavaScript - --> > </SCRIPT> > > Thanks > M�rio Lopes > > > --- > You are currently subscribed to activeserverpages as: [EMAIL PROTECTED] > To unsubscribe send a blank email to %%email.unsub%% --- You are currently subscribed to activeserverpages as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED]
