This works for me in IE and FireFox: <form name="myForm"> <input type=text name="something[0].down.here"/> <input type=button onClick="tryMe()" value="Try Me"/> </form>
<script language="Javascript"> function tryMe() { var frm = document.myForm; var ctrl = frm['something[0].down.here'].value="Hello!"; } </script> - Hubert On Thu, 13 Jan 2005 09:56:00 -0200, Vinicius Caldeira Carvalho <[EMAIL PROTECTED]> wrote: > Well, this is kinda off topic, but I thought that maybe some of you may > ran into this problem. > > I have a nested text field. It's name is : destiny[0].airShip.name > I need to use a javascript function to get this value. But > document.forms[0].destiny[0].airShip.name will not work, which seems > logical since those are not objects but a string generated by struts. Is > there a way to access those properties? > > thanks > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]