Estou tentanto jogar valores em um <input text> mas não consigo. Quero que quando eu clicar em um objeto select este valor seja jogado no input text.
um pedaço do código:
<input type=“text” name=“textCod3”></td>
<td valign="bottom"><select name="selectAss2" size="1" onclick="<%hierar.buscaTodos(aux);%>">
<option selected >Selecione:</option>
<% hierar.buscaAssunto("ass");
%>
<option><%=(hierar.getAssunto())%></option>
<% while (hierar.proximosDados()){
%>
<option><%=(hierar.getAssunto())%>
<%} %>
</option>
valeu!!!