Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Paulo Roberto Start Corp

Mostra esconder Div

Recommended Posts

Boa tarde a todos

 

 

 

 

Oque eu estou fazendo de errado ????

 

 

 

 

 

 

 

<script type="text/javascript">


window.onload = function(){
   id('dispositivo').onchange = function(){
       if( this.value==0 )
           id('especifique').style.display = 'block';
       else
           id('especifique').style.display = 'none';
   }
}
function id( el ){
   return document.getElementById( el );


    id('interface').onchange = function(){
       if( this.value==0 )
           id('interfaces').style.display = 'block';
       else
           id('interfaces').style.display = 'none';
   }
}
function id( el ){
   return document.getElementById( el );



    id('fabricante').onchange = function(){
       if( this.value==0 )
           id('fabricas').style.display = 'block';
       else
           id('fabricas').style.display = 'none';
   }
}
function id( el ){
   return document.getElementById( el );
}
</script>

Compartilhar este post


Link para o post
Compartilhar em outros sites
<script type="text/javascript">


window.onload = function(){
   id('dispositivo').onchange = function(){
       if( this.value==0 )
           id('especifique').style.display = 'block';
       else
           id('especifique').style.display = 'none';
   }        
    id('interface').onchange = function(){
       if( this.value==0 )
           id('interfaces').style.display = 'block';
       else
           id('interfaces').style.display = 'none';
   }

    id('fabricante').onchange = function(){
       if( this.value==0 )
           id('fabricas').style.display = 'block';
       else
           id('fabricas').style.display = 'none';
   }

}//fecha window.onload

function id( el ){
   return document.getElementById( el );
}
</script>

entendeu ?

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.