我有三个字段,其中一个是赚取金额,第二个是减税和第三个
一个是应付金额。现在它向我显示从
中扣除的税额赚取金额,但我想在
中查看税收从中扣除的总数应付金额框。
示例:如果我们的赚钱是1600,那么税是32,但我想要价值1568
进入我的应付金额字段?
Here is the code:
<form onsubmit="return false" oninput="amount.value = (earnamount.valueAsNumber) * ((taxdeduction.valueAsNumber))"
oninput="amount.value">
<legend>Test Environment.... Tax Deduction</legend>
<p><label for="earnamount"> Earn Amount</label>
<input type="number" id="earnamount" name="earnamount"></p>
<p><label for="taxdeduction"> Tax Deduction</label>
<input type="number" id="taxdeduction" value="0.02" name="taxdeduction"></p>
<p><label for="amountpayable">Amount Payable</label>
<input type="number" id="amountpayable" name="amountpayable"></p>
<p>Total Tax In: <strong>AFN: <output name="amount" for="earnamount taxdeduction">0</output></strong></p>
</form>