<html:text name="myForm"
property="myobject.subobject" styleId="subobject" .../>
then get the field by using
document.getElementById("subobject");
Tony Smith <[EMAIL PROTECTED]>
08/18/2005 01:07 PM
|
|
Hi everyone:
Here is my jsp:
<html:form>
...
<html:select ... > ...
</html:select>
<html:text name="myForm"
property="myobject.subobject" .../>
</html:form>
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_:
<script language="_javascript_">
function change(select){
document.form[0].myobject.subobject =
select.options[select.selectedIndex];
}
But looks like this does not work. The problem is the
name of the "text". In the html it is
"myobject.subobject". But seems that _javascript_ does
not take that....
How can I refer the "text" in _javascript_?
Thanks,
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]