I have two input one with value and the other with quantity and span for result
<input type="text" value="50,00">
<input type="number" value="3">
<span id="resultado"></span>
I need the following I can do the multiplication of the input and the result. but I want to give every 3 product a discount. If the client:
1) digitar 3 dou desconto de 1.
2) digitar 5 dou ainda dou desconto de 1.
3) digitar 6 dou desconto de 2. (entre na regra de acada 3 produtos vc ganha 1)
4) digitar 9 dou desconto de 3. (por causa da regra)
5) digitar 10 dou desconto de 3. (por causa da regra)