Hello struts-user,

  I want to write a selected element from a PullDown in a text form. I
  use a JavaScript funktion to do this. This funktion is excecuted
  when someone click on a element from the PullDown. (or perhaps not
  excecuted?)
  The problem is now, nothing is written in the text field.

JavaScript funktion in the header area:

<script language="JavaScript">
<!--
  function setArtist(artistStr){
    document.forms[0].artist.value=artistStr;
  }
//-->
</script>


PullDown and text field:

<html:text property="artist" size="40"/>
<html:select property="artist" onclick="javascript:setArtist(value);">
  <html:options collection="artist" property="value" labelProperty="label"/>
</html:select>



Have someone a idea to solve this problem???


-- 
Best regards,
 rgi                          mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to