Ver Mensaje Individual
  #3 (permalink)  
Antiguo 23/04/2010, 11:42
hola123
 
Fecha de Ingreso: febrero-2009
Mensajes: 142
Antigüedad: 15 años, 3 meses
Puntos: 0
Respuesta: Sumar echeckbox

Mil gracias gjX2,

Lo provee y si funciona, si suma los check que selecciono, pero tengo un problema, cuando trato de seleccionar mas check que no correspondan a la misma columna, no lo suma, lo que esta haciendo es restas. Tengo estas preguntas

<td>
Pregunta 1
<input type="checkbox" value="5" name="1" id="check_5" onclick="instuctor(this.id)"> Excelente
<input type="checkbox" value="4" name="1" id="check_4" onclick="instuctor(this.id)">Muy Bueno
<input type="checkbox" value="3" name="1" id="check_3" onclick="instuctor(this.id)">Bueno
<input type="checkbox" value="2" name="1" id="check_2" onclick="instuctor(this.id)">Malo
<input type="checkbox" value="1" name="1" id="check_1" onclick="instuctor(this.id)">Muy Malo
</td>
<tr>
<td>
Pregunta 2
<input type="checkbox" value="5" name="1" id="check_5" onclick="instuctor(this.id)"> Excelente
<input type="checkbox" value="4" name="1" id="check_4" onclick="instuctor(this.id)">Muy Bueno
<input type="checkbox" value="3" name="1" id="check_3" onclick="instuctor(this.id)">Bueno
<input type="checkbox" value="2" name="1" id="check_2" onclick="instuctor(this.id)">Malo
<input type="checkbox" value="1" name="1" id="check_1" onclick="instuctor(this.id)">Muy Malo
</td>
</tr>


Si seleccion un check de la pregunta 1 lo suma, y si despues selecciono un check de pregunta 2 lo resta.

Espero que me puedas apoyar.