Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/01/2003, 19:53
Avatar de tunait
tunait
Moderadora
 
Fecha de Ingreso: agosto-2001
Ubicación: Terok Nor
Mensajes: 16.805
Antigüedad: 23 años, 6 meses
Puntos: 381
Buenas,

cambiando esto lo logras;

<script>

function countChoices(obj) {
max = 1; // max. number allowed at a time

a = obj.form.PollVote[0].checked; // your checkboxes here
b = obj.form.PollVote[1].checked;

// add more if necessary

count = (a ? 1 : 0) + (b ? 1 : 0);
// If you have more checkboxes on your form
// add more (box_ ? 1 : 0) 's separated by '+'

if (count > max) {
alert("Atencion! Solo puede seleccionar " + max + " opcion! \Quite una de ellas si quiere seleccionar otra.");
obj.checked = false;
}
}


</script>

Saludos