You've got to use a different syntax for referencing the browser dom. document.forms["frm"].elements["txtName[1]"].value()
JM > -----Original Message----- > From: deepak [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 15, 2002 7:01 AM > To: [EMAIL PROTECTED] > Subject: Javascript and struts compatibility > > > Hi, > Here is a problem I'm dealing with. > In a JSP textfields are formed dynamically using struts. > Struts will name these dynamically created textfields in the form of array > as txtName[0], txtName[1] ....... txtName[i] respectively. The > names txtName[i] correspond to the respective getTxtName(i) in > the Form.java file. Now txtName[i] is not a valid control name in > javascript. So how do i use these control names in JavaScript. Is > there any other way I can name (javascript compatible name) my > contols while they are created. > > Thanks > > Deepak > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

