Re: How can I refer a control in javascript which hava a "." in its name
You also have the option of doing document.form[0]['myobject.subobject']. On 8/18/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > >property="myobject.subobject" styleId="subobject" .../> > > then get the field by using > > document.getElementById("subobject"); > > > Tony Smith <[EMAIL PROTECTED]> > > > > > > > > Tony Smith <[EMAIL PROTECTED]> > > 08/18/2005 01:07 PM > > Please respond to > "Struts Users Mailing List" > > > To > Struts Users Mailing List > > > cc > > > > Subject > How can I refer a control in javascript which hava a "." in its name > > > Hi everyone: > > Here is my jsp: > > >... > > ... > > > > property="myobject.subobject" .../> > > > > > If user change the selection in the "select", I would > like to change the content of the "text". Thus, I > write my change() function in javascript: > >
Re: How can I refer a control in javascript which hava a "." in its name
property="myobject.subobject" styleId="subobject" .../> then get the field by using document.getElementById("subobject"); Tony Smith <[EMAIL PROTECTED]> Tony Smith <[EMAIL PROTECTED]> 08/18/2005 01:07 PM Please respond to "Struts Users Mailing List" To Struts Users Mailing List cc Subject How can I refer a control in _javascript_ which hava a "." in its name Hi everyone: Here is my jsp: ... ... property="myobject.subobject" .../> If user change the selection in the "select", I would like to change the content of the "text". Thus, I write my change() function in _javascript_:
How can I refer a control in javascript which hava a "." in its name
Hi everyone: Here is my jsp: ... ... If user change the selection in the "select", I would like to change the content of the "text". Thus, I write my change() function in javascript: