I have an AJAX-y type page. When the user clicks \"GO\" I need to execute a specific javascript function. I also want to simulate the \"GO\" click when a user hits \"Enter\"
Assuming you have a form:
$('#theForm').submit(function(e){ e.preventDefault(); goButton(); return false; // just to be sure. });
You need to prevent the submit event from the form, which gets called when the form has focus and a user presses enter.