我想建立一个费用计算器,为此我需要访问表单,我想知道我是否可以在jQuery中完成。 所以我的代码是:如何访问表单选择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%的金额,然后将其打印在下面的段落中。
未来,请尽量在您的问题上更加一致,并提供您正在尝试做什么的完整说明。 – 2013-04-11 20:33:41