我希望将值乘以 2.50 并添加 1.95(值*2.50)+1.95。有没有办法通过javascript做到这一点?
<form action="" id="formcalculate" method="post" name="formcalculate" >
<p class="DistanceLable">Distance in miles:</p>
<p style="position: relative; text-align: center; font-size: 11px">
<input id="ratecalculator" style="text-align: right; width: 50px; font-weight: bold; font-size: 15px" type="text" value="0"/>
</p>
<p style="text-align: center; padding-top: 3px">
<input id="btnTotal" class="art-button" type="button" value="Calculate"/>
</p>
<p id="totalcalculator" class="totalcalculator" > </p>
</form>