Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/09/2009, 09:33
Avatar de _-ZeuS-_
_-ZeuS-_
 
Fecha de Ingreso: junio-2007
Ubicación: Quito, Ecuador! ;)
Mensajes: 100
Antigüedad: 16 años, 10 meses
Puntos: 7
Respuesta: [Busco] Script para auto-presupuesto

Mira podrías usar jquery para ese calculo te dejo un tip para ver si te ayuda:

el html quedaría algo así:

Código HTML:
<input type="checkbox" value="100" id="val1" class="val_check">Val1<br>
<input type="checkbox" value="200" id="val2" class="val_check">Val2
Resultado: <input type="text" value="10" id="res"> 
tendrías que tener un javascript algo así (uso jquery así ke te dejo kon eso):

Código:
var val_anterior=0;
var val_nuevo=0;
jQuery(document).ready(function(){
    jQuery(".val_check").click(function(){
          val_anterior = Query("#res").val();
          val_nuevo = val_anterior+jQuery(this).val();
          jQuery("#res").attr("value",val_nuevo);
    });
});
eso te debería funcionar no lo he podido probar pero si necesitas ayuda ya sabes.

Por otro lado kreo ke sería bueno ke leas esto (sin ofender):
sindominio.net/ayuda/preguntas-inteligentes.html