Ver Mensaje Individual
  #4 (permalink)  
Antiguo 01/08/2005, 06:47
mackpipe
 
Fecha de Ingreso: abril-2003
Ubicación: Bogota
Mensajes: 131
Antigüedad: 21 años, 10 meses
Puntos: 2
si son varios el id deberia estar acompañado de un numero de secuencia.. asi le seria mas facil referirse a el

<input type="checkbox" name="chk_1" id="chk_1" value="10" onclick="calcular(this)">
<input type="checkbox" name="chk_2" id="chk_2" value="70" onclick="calcular(this)">
<input type="checkbox" name="chk_3" id="chk_3" value="20" onclick="calcular(this)">
<input type="checkbox" name="chk_4" id="chk_4" value="30" onclick="calcular(this)">
<input type="checkbox" name="chk_5" id="chk_5" value="40" onclick="calcular(this)">


asi cuando se llame la funcion calcular sin importar desde que checkbox... va a realizar los calculos con la informacion que se envia del objeto