Ver Mensaje Individual
  #12 (permalink)  
Antiguo 12/06/2012, 12:58
Dniel
 
Fecha de Ingreso: diciembre-2009
Mensajes: 51
Antigüedad: 4 años, 10 meses
Puntos: 1
Respuesta: Mostrar SELECT oculto al seleccionar valor en otro SELECT.

Cita:
Iniciado por IsaBelM Ver Mensaje
eso mismo pero en el select. como lo has hecho antes
Me debe de faltar algo, porque como muestro a continuación tampoco funciona:

Código HTML:
<form method="post" action="#">
    <table>
        <tr>
            <td>
                <select name="select1.1" onchange="this.parentNode.parentNode.nextSibling.nextSibling.zzzzzstyle.display='block'">
                    <option value=""></option>
                    <option value="select1.1Option1">1</option>
                    <option value="select1.1Option2">2</option>
                    <option value="select1.1Option3">3</option>
                </select>
            </td>
            <td>
                <select name="select1.2" onchange="this.parentNode.parentNode.nextSibling.nextSibling.zzzzzstyle.display='block'">
                    <option value=""></option>
                    <option value="select1.2Option1">1</option>
                    <option value="select1.2Option2">2</option>
                    <option value="select1.2Option3">3</option>
                </select>
            </td>
        </tr>
        <tr>
            <td>
                <select name="select2.1" onchange="this.parentNode.parentNode.nextSibling.nextSibling.style.display='block'" style="display: none">
                    <option value=""></option>
                    <option value="select2.1Option1">1</option>
                    <option value="select2.1Option2">2</option>
                    <option value="select2.1Option3">3</option>
                </select>
            </td>
            <td>
                <select name="select2.2" onchange="this.parentNode.parentNode.nextSibling.nextSibling.style.display='block'" style="display: none">
                    <option value=""></option>
                    <option value="select2.2Option1">1</option>
                    <option value="select2.2Option2">2</option>
                    <option value="select2.2Option3">3</option>
                </select>
            </td>
        </tr>
        <tr>
            <td>
                <select name="select3.1" onchange="this.parentNode.parentNode.nextSibling.nextSibling.style.display='block'" style="display: none">
                    <option value=""></option>
                    <option value="select3.1Option1">1</option>
                    <option value="select3.1Option2">2</option>
                    <option value="select3.1Option3">3</option>
                </select>
            </td>
            <td>
                <select name="select3.2" onchange="this.parentNode.parentNode.nextSibling.nextSibling.style.display='block'" style="display: none">
                    <option value=""></option>
                    <option value="select3.2Option1">1</option>
                    <option value="select3.2Option2">2</option>
                    <option value="select3.2Option3">3</option>
                </select>
            </td>
        </tr>
    </table>
</form>