Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/11/2015, 12:09
diegoguerrero
 
Fecha de Ingreso: diciembre-2014
Ubicación: Madrid
Mensajes: 274
Antigüedad: 9 años, 4 meses
Puntos: 5
Ocultar y mostrar al hacer click

Hola
Necesito un código que, mediante el evento onClick de HTML, me muestre un DIV o no. He hecho esto pero no funciona. Si me pudieran hacer esto y no les roba muchísimo tiempo se lo agradezco. Gracias.

Código Javascript:
Ver original
  1. function PanelDatos(){
  2.     if (document.getElementById("PanelDatos").style.display == 'none'){
  3.         document.getElementById("PanelDatos").style.display == 'none';
  4.     }else{
  5.         document.getElementById("PanelDatos").style.display == 'block';
  6.     }
  7. }