Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/10/2004, 18:58
kepawe
 
Fecha de Ingreso: agosto-2004
Mensajes: 157
Antigüedad: 20 años, 5 meses
Puntos: 5
Hola angel_dope
Mira a ver si funciona así.

Código PHP:

function countChoices(obj) {
max 5// max. number allowed at a time
//alert(document.form.PollVote.length)
count
for(var counter0counter document.form.PollVote.lengthcounter++){
 if(
document.form.PollVote[counter].checked){
     
count++
 }
}
// 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> 
Un saludo