I'mtryingtomakeitlooklikethis:
Ifanyonecangivemeatip,I'llbegrateful.Hereisthecode:
<script type="text/javascript">
function passar(){
var valorA = document.getElementById("valorA");
var nome = document.getElementById("nome");
nome.value = valorA.value;
};
</script>
<select name="valorA" id="valorA" size="3" multiple>
<option value="Gezer">Gezer</option>
<option value="João" selected>João</option>
<option value="Marcos">Marcos</option>
</select>
<button type="button" onclick="passar();"> passar valores </button>
Nome:<input type="text" id="nome" size="10"/>