How to multiply two input and addition the third input on keypress I have a Three input field need to multiple first two input and addition of third input then show the result field HTML code:
<input type="text" tabindex="3" class="form-control" name="making_charge" oninput="calculate()" placeholder="Making Charge" id="box3" required />
<input type="text" tabindex="3" class="form-control" name="total_price" placeholder="Total Price" id="result" readonly />
function calculate() {
var myBox1 = document.getElementById('box1').value;
var myBox2 = document.getElementById('box2').value;
var myBox3 = document.getElementById('box3').value;
var result = document.getElementById('result');
var myResult = myBox1 * myBox2 + myBox3;
result.value = myResult;
}