I'm not sure what I am doing wrong here. I want the enter key to work as well as clicking the button.
<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>
simply make a hidden button like this
HTML
CSS
when the user will hit the enter button the form will be submitted
Don't forget to put the type="submit"
Oh that is because the HTML form element does not recognize the link as a button, to click.. you need to replace it with a button...
but if you want it to look like a link you should do this in the css
Try this:
Use an
<input type="submit">
instead of a link. Then the enter key will work automatically.Please use below code snippet...It should be added into script block