Ver Mensaje Individual
  #5 (permalink)  
Antiguo 25/11/2008, 05:26
karliky
 
Fecha de Ingreso: septiembre-2004
Mensajes: 324
Antigüedad: 19 años, 8 meses
Puntos: 13
Respuesta: Problema con textarea y select

Cita:
Iniciado por David el Grande Ver Mensaje
emisor.text... los input type text no tienen un atributo llamado "text", debe ser emisor.value.
El codigo me queda asi:
Código PHP:
<script type="text/javascript"
function 
addselectdesdetext(){
    
emisor document.getElementById(txt);
    
receptor document.getElementById(segundo3);
    
posicion receptor.options.length;
    
receptor.options[posicion] = new Option(emisor.valueemisor.value);


}
</script>
<form>
                <input name="txt" type="text" class="alt" id="txt" size="30" />
              <input type="button" value="----&gt;" onclick="addselectdesdetext();" />
             <select name="segundo3" size="15" id="segundo3"  style="width: 150px; height: 100px;">
</form> 
Pero nada, no funciona
No veo e error,eso del javscript me resulta complejo!
Ayudame si puedes
Gracias