Ir para conteúdo
Fórum Script Brasil

Jheliton

Membros
  • Total de itens

    1
  • Registro em

  • Última visita

Sobre Jheliton

Jheliton's Achievements

0

Reputação

  1. Bom dia, Estou com alguma dificuldade para aplicar essa operação matemática no JavaScrip: <html> <head> <script type="text/javascript"> function somarValores(){ var parede = document.getElementById("parede").value; var largura = document.getElementById("largura").value; var s3 = parseInt(('parede' + 500) * parseInt(largura) + parseInt(parede) * 0,024/1000); alert(s3); } </script> </head> <body> <form> <fieldset> <legend>Soma</legend> <label>Valor 1:</label> <input id="parede" type="text"/> <label>Valor 2: </label> <input id="largura" type="text"/> <button id="somar" onclick="somarValores()">Somar</button> <input id "limpar" type="reset" value="Limpar"> </fieldset> </form> </body> </html> alguém sabe dizer qual problema? seria na hora que montar o algoritmo da operação? Obrigado desde já.
×
×
  • Criar Novo...