struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgi <>
Subject html:select and JavaScript problem
Date Mon, 03 Dec 2001 10:59:07 GMT
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
  The problem is now, nothing is written in the text field.

JavaScript funktion in the header area:

<script language="JavaScript">
  function setArtist(artistStr){

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"/>

Have someone a idea to solve this problem???

Best regards,

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message