![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
30/04/2013, 21:46
|
| | Fecha de Ingreso: abril-2013
Mensajes: 23
Antigüedad: 11 años, 9 meses Puntos: 1 | |
Respuesta: Activar el botón enviar cuando haga click en un checkbox desde el conten Proba lo siguiente:
Función
<script type="text/javascript">
function activarCasilla(check){
if(check.checked==true){
document.getElementById("submit").style.display = "block";
}else{
document.getElementById("submit").style.display = "none";
}
}
</script>
Y el check y el submit algo parecido a esto:
<input type="checkbox" id="check" onclick="activarCasilla(this)"/>
<input type="submit" id="submit" value="Enviar" style="display:none;"/>
Avisame si funciona.
Saludos. |