Calculate value between h using jquery

0

Good morning, I have the following code:

<section id="four" class="wrapper special">
				<div class="inner">
           <div class="features" id="Comprando">
              <div class="feature">
							<h3>Produto1</h3>
							<b>R$ <?php echo round($valor1, 3); ?></b>
              <input type="text" class="reais">
              <input type="text" class="resultado" readonly>
              </div>
               <div class="feature">
							<h3>Produto2</h3>
							<b>R$ <?php echo round($valor2, 3); ?></b>
              <input type="text" class="reais">
              <input type="text" class="resultado" readonly>
              </div>
            </div>
          </div>
</section>

Basically the value of the product comes from a variable ($ value), the staff puts how many reals it wants to spend (input class="real") and jquery performs a division between the input and the variable, in input class="result". This every time the person fills the input real and for each div, ie for each product. Anyone who can help, thank you in advance!

    
asked by anonymous 25.07.2018 / 17:22

0 answers