I have a form in which I use autocomplete, and a link. When some text is entered into the form, and the link is clicked, the contents of the text go into the the textarea.
You can see it working in this test page: http://www.problemio.com/test.php
The problem I am having is that when the cursor is in the textfield, and "enter" is pressed, the form gets submitted. But the more intuitive thing is that the "add category" link gets clicked.
Is there a way to change things so that when the cursor is on the textfield, and enter is pressed, the page acts as though the link for "add category" is pressed?
Thanks!!