Este es el codigo de lo que he echo:
Código HTML:
Ver original
<html> <body> <input type="checkbox" id="check01" value="check01">01 <br > <input type="checkbox" id="check02" value="check02" onclick="if(this.checked)document.getElementById('check01').checked = true">02 <br > <input type="checkbox" id="check03" value="check03" onclick="if(this.checked)document.getElementById('check01').checked = true">03 <br > <input type="checkbox" id="check04" value="check04" onclick="if(this.checked)document.getElementById('check01').checked = true">04 </body> </html>
En este ejemplo cuando activo el 2do o el 3ro o el 4to se activa el 1ro, pero lo quiero esque cuando esten activados los 3 checkox se active el 1ro, osea que si solo activo dos o uno no se active el 1ro sino que se active hasta que los 3 esten activados.
y estaba pensando en una condicion parecida a esta pero no se si la sintaxis sea la correcta:
Código Javascript:
Espero darme a enterner.Ver original
if(document.getElementById('check02').checked = true && document.getElementById('check03').checked = true && document.getElementById('check04').checked = true) document.getElementById('check01').checked = true
Muchas gracias.
