Hi everyone
I am trying to calculate input 1’s value by input 2’s value, so it results in input 3. The form looks like so
<form action="">
<h3>Breakeven Analysis</h3>
Customer Lifetime Value: <br>
<input value="" type="text" class='number1'/><br/>
Gross Margin: <br>
<input value="" type="text" class='number2'/><br/>
Marin Per Customer: <br>
<input value="" type="text" class='number3'/><br/>
</form>
i am trying to use jquery to complete this task. This is what I have so far
$('.field1, .field2').change(function(){
$('.field3').val($('.field1').val() * $('.field2').val() / 100);
})
Not to sure where to from here. Basically, if input one was 3000, and input 2 60 (%), then input 3 should populate to 1800