Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/06/2009, 12:12
ind4rk
 
Fecha de Ingreso: febrero-2009
Mensajes: 17
Antigüedad: 15 años, 2 meses
Puntos: 0
Respuesta: Mostrar textarea al seleccionar solo una opcion

te recomiendo que le pongas value a las opciones o en el ie no se entera xD
Que quieres un testarea? que cambie el texto segun la opcion..
O diferentes textareas para cada opcion..
Que esten ocultas? y aparezcan?


supongo ke un solo textarea y oculta...


Código:
<html>
<head>
    <title>Página sin título</title>
</head>
<script type="text/javascript">
        function visible(valor) 
        {
            document.getElementById("TextArea1").style.visibility = "visible"
            document.getElementById("TextArea1").value = valor ;
        }
</script>
<body>

    <select id="Select1" onchange="visible(this.value)">
        <option value="a">a</option>
        <option value="b">b</option>
    </select>
    <textarea id="TextArea1" cols="20" rows="2" style="visibility:hidden;"></textarea>
</body>
</html>