【发布时间】:2015-05-16 06:29:39
【问题描述】:
有人可以帮我在给定以下价格的情况下获得股票的总价格吗?使用 onclick,一旦有人输入了他们想要购买的股票数量,我该如何获得所有 3 只股票的总价格??
<tr>
<td><b> SHARE PRICE</b></td>
<td>$43.93</td>
<td>$43.87</td>
<td>$26.33</td>
</tr>
</table>
<hr>
<br>
<p>
<h3>Important information that you should know about these stocks: </h3>
<ul>
<li>0.1% of the trade value if the total trade value is less than $10,000</li>
<li>0.08% of the trade value if the total trade value is greater than or equal to $10,000</li>
<li>The minimum commission is $5</li>
<hr>
<br>
</ul>
<form name="calculator">
<p> Enter the number of Oracle Corporation stocks you wish to purchase!: <input type="text" id="input1"></p> <br>
<p> Enter the number of Microsoft Corporation stocks you wish to purchase!: <input type="text" id="input2"></p> <br>
<p> Enter the number of Symantec Corporation stocks you wish to purchase!: <input type="text" id="input3"></p> <br
【问题讨论】:
-
到目前为止您尝试过什么?什么不起作用?
标签: javascript html onclick calculator