Ver Mensaje Individual
  #5 (permalink)  
Antiguo 10/04/2013, 08:18
ioniben
 
Fecha de Ingreso: marzo-2013
Ubicación: España
Mensajes: 42
Antigüedad: 11 años, 2 meses
Puntos: 4
Respuesta: Desmarcar checkbox al marcar otro checkbox

Esto te deberia de funcionar:
<html>
<head>
<title>Test</title>

<script>
function check1(box) {
if (box.checked) {

document.getElementById("checkbox2").checked=false
}
}
function check2(box) {
if (box.checked) {
document.getElementById("checkbox1").checked=false
}
}


</script>
</head>

<body>

<form>

<input id="checkbox1" type="checkbox" onclick="check1(this)" />
<input id="checkbox2" type="checkbox" onclick="check2(this)" />
</form>
</body>
</html>