Ver Mensaje Individual
  #3 (permalink)  
Antiguo 04/10/2013, 12:24
Avatar de Cuervoo
Cuervoo
 
Fecha de Ingreso: octubre-2013
Mensajes: 165
Antigüedad: 10 años, 7 meses
Puntos: 43
Respuesta: Sumar radio buttons (no se cuantos ni nombre)

Probá con esto:

Código Javascript:
Ver original
  1. <script>
  2. suma = 0;
  3. $('#contenedor input[type="radio"]:checked').each(function () {
  4.     suma += $(this).val();
  5. }
  6. alert('Total:  ' + suma + '  puntos.');
  7. </script>

No está probado, pero tendría que funcionar.