internet explorer - jQuery submit handler for form with single input field doesn't trigger on IE -
I have an input element but no submit button. I use jQuery to attach an onsmitt handler:
$ ('# tickerbox-form'). Submit (function (ev) {warning ('submit'); // I have other code actually does something ... return false;});
I need input (anonymous function) handler when the Enter button is pressed in the input field. It works for me on Safari, but not on IE What am i doing
BTW: Works on entering IE, and invites a post request on the URL for the specified "Action" parameter of the form.
$ ('# tickerbox-form'). Keypress (function (e) {if (ehihi == 13) {$ (this). Submit ();}});
Comments
Post a Comment