我不知道我在做什麼錯在這裏。我希望回車鍵能夠工作以及點擊按鈕。提交表單上的回車鍵使用javascript
<form action="" method="get" class="priceOptionForm" name="priceOptionForm">
<input name="paypal_email" type="text" value="whatever" id="email"></label>
<a href="javascript:void(0);" class="bluebtn" id="profile_price" style="width:60px;margin-top:5px;">Save all</a>
</form>
哪一個不工作?輸入鍵或按鈕? – Xymostech
我在這裏找到了解決方案:http://stackoverflow.com/questions/29943/how-to-submit-a-form-when-the-return-key-is-pressed –