Ver Mensaje Individual
  #1 (permalink)  
Antiguo 19/12/2011, 10:29
Avatar de shake2427
shake2427
 
Fecha de Ingreso: julio-2011
Mensajes: 116
Antigüedad: 12 años, 9 meses
Puntos: 3
operacion en explorer

buenas.

tengo el siguiente codigo, pero en explore no funciona, y en firefox si funciona sin ningun problema
Código Javascript:
Ver original
  1. <script type="text/javascript">
  2.                 function operation(){
  3.                     amount = document.getElementById("quantity").value;
  4.                     //unitvalue =document.getElementById("priceunit").value;
  5.                     //valueiva =document.getElementById("iva").value;
  6.                    
  7.                     res = amount*60000;
  8.                     totaliva = res*16/100;
  9.                     totalvalue=res+totaliva;
  10.                    
  11.                     document.getElementById("totalprisce").innerHTML = '$'+res
  12.                     document.getElementById("totaliva").innerHTML = '$'+totaliva
  13.                     document.getElementById("cant").innerHTML=amount
  14.                     document.getElementById("totalvalue").innerHTML='$'+totalvalue
  15.                    
  16.                     //valores para el submit
  17.                     document.getElementById("totalvalue_submit").value=totalvalue
  18.    
  19.                             }
  20.                 </script>


gracias de antemano.