料金計算機を作成したいのですが、そのためにフォームにアクセスする必要があるため、jQuery でそれを実行できるかどうか疑問に思いました。だから私のコードはそれです:
<form id="fee">
<input type="text" title="fee" placeholder="Place the amount that you would like to send"/> $
<input type="submit" onclick="getFee()"/>
</form>
<br/>
<p id="Here will be the fee"></p>
そしてJS:
function getFee(){
$("fee > input:fee").
}
これが私の問題です。ユーザーが入力に入力した金額を取得し、この金額に 10% を追加して、下の段落に出力する方法を知りたいです。