I have a form with an input element but no submit button. I use jQuery to attach an onsubmit handler:
$('#tickerbox-form').submit(function (ev) { alert('submit'); // I have other code that actually does something... return false; }); I want the (anonymous function) handler to be invoked when the Enter button is pressed in the input field. This works for me on Safari, but not on IE. What am I doing wrong?
btw: IE does act on the Enter, and invokes a POST request on the URL for the specified "action" parameter of the form.