Tengo una función que es la siguente
Código HTML:
function sumar()
{
var total = 0;
var preciofinal = 0;
var valor1 = document.getElementById("val1").value;
var valor2 = document.getElementById("val2").value;
var preciounidad = document.getElementById("finallpvp").value;
total = (valor1 * valor2);
preciofinal=(valor1 * valor2 * preciounidad);
var Display = document.getElementById("quantity_wanted");
Display.value = total;
var Display = document.getElementById("precio");
Display.innerHTML = total;
var Display = document.getElementById("pvp");
Display.innerHTML = preciofinal;
}
Gracias pos su tiempo



