![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
13/05/2003, 23:16
|
![Avatar de TurKa](http://static.forosdelweb.com/customavatars/avatar29943_3.gif) | | | Fecha de Ingreso: enero-2003 Ubicación: Gerli, Avellaneda
Mensajes: 543
Antigüedad: 22 años Puntos: 4 | |
A ver si te sirve esto:
function escribir(form) {
if(form.opciones.options[form.opciones.selectedIndex].value != " ") {
i = form.opciones.options[form.opciones.selectedIndex]
if(i.selected == true) {
form.texto.value += i.value + " ";
form.opciones[form.opciones.selectedIndex] = null;
}
}
}
</script>
<form name="formulario">
<select size="1" name="opciones" onChange="escribir(this.form)">
<option value=" ">seleccionar</option>
<option value="texto uno">texto uno</option>
<option value="texto dos">texto dos</option>
<option value="texto tres">texto tres</option>
</select> <input type="text" name="texto" size="20"></form> |