Ver Mensaje Individual
  #4 (permalink)  
Antiguo 22/01/2015, 16:41
jolquera
 
Fecha de Ingreso: diciembre-2014
Mensajes: 60
Antigüedad: 9 años, 4 meses
Puntos: 1
Respuesta: Funcion no se ejecuta en chrome ni Internet explorer

Al final lo he solucionado, en vez de jquery lo hize con javascript...

<input name="exceder_iva" type="checkbox" class="exceder_iva_1" id="exceder_iva" onClick="Suma(this.checked,this.value)">

Código Javascript:
Ver original
  1. function Suma(isChecked, myValue){
  2.     tot = parseInt(document.form1.iva.value);
  3.     myValue = parseInt(myValue);
  4.     if (isChecked) document.form1.iva.value = tot - myValue;
  5.     else document.form1.iva.value = tot + myValue;
  6. }