![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
18/07/2015, 09:36
|
![Avatar de angel_xx_1990](http://static.forosdelweb.com/customavatars/avatar516536_2.gif) | | | Fecha de Ingreso: junio-2013 Ubicación: Guadalajara
Mensajes: 236
Antigüedad: 11 años, 7 meses Puntos: 0 | |
Respuesta: Ocultar una div con PHP Lo estoy intentando con Javascript pero no me funciona...detectais algun error??
<script type="text/javascript">
function mostrar(){
var var1=('$datosobt').value;
var var2=document.getElementById('modifyemail');
if (var1==0) {
var2.style.display="inline";
} else {
var2.style.display="none";
}
}
</script> |