"Natália-Exercício5"
Bootstrap 4.1.1 Snippet by psd06t

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <html> <head> <script type="text/javascript"> var s3=0; function somarValores() { var s1 = document.getElementById("nome").value; var s2 = document.getElementById("s2").value; s3 = +s1 + +s2; alert(s3); document.getElementById('resultado').value = s3; //o alert aqui é só para testar a soma voces tem de colocar o valor na imoressão do recibo. } </script> </head> <body> <div class="container"> <div class="row"> <h2>CUMPOM FISCAL</h2> </div> <div> <form> <label for="lname">Last name----------------------</label><br> <label for="fname">First name----------------------</label><br> <label for="lname">Last name----------------------</label><br> <label for="fname">First name----------------------</label><br> <label for="lname">Last name----------------------</label><br> <label for="fname">First name----------------------</label><br> <label for="lname">Last name----------------------</label><br> </form> <script> document.write(overview[0]);</script></script> </div> <fieldset> <legend>Cálculo da Venda</legend> <label>Valor 1:</label> <input id="nome" type="text"/> <label>Valor 2: </label> <input id="s2" type="text" onblur="somarValores()"/> <button id="somar" onclick="somarValores()">Somar</button> <input id="resultado" onfocusout="somarValores(s3)"/> </fieldset> </body> </html>
var carro = [ "Saab", "Volvo", "BMW" ] var overview = ["Fiat","UNO","Preto","Hidráulica","2000","Pago","NOVO","SIM","Flex","BELO HORIZONTE/MG"]; function grava_carro() { carro[0] = document.getElementById("carro_fabricante").value; carro[0] = document.getElementById("nome").value; carro[0] = document.getElementById("nome").value; carro[0] = document.getElementById("nome").value; carro[0] = document.getElementById("nome").value; carro[0] = document.getElementById("nome").value; carro[0] = document.getElementById("nome").value; carro[0] = document.getElementById("nome").value; carro[0] = document.getElementById("nome").value; //o alert aqui é só para testar a soma voces tem de colocar o valor na imoressão do recibo. } <fieldset> <legend>Cadastro do Automóvel</legend>

Related: See More


Questions / Comments: