[jQuery] Re: Possible to intercept enter/return key?

2007-06-12 Thread Arne-Kolja Bachstein
Hi Marshall, thank you _very_ much, it works like a charme! Best regards Arne From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Marshall Salinger Sent: Tuesday, June 12, 2007 6:05 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Possible to intercept

[jQuery] Re: Possible to intercept enter/return key?

2007-06-12 Thread Marshall Salinger
This should do the trick: $("yourSelector").keydown(function(e){ if (e.keyCode == 13) { $("yourSelector").submit(); } }); -Marshall Arne-Kolja Bachstein wrote: Hi there,   is it possible to bind a keydown event to intercept the enter/return key? I have a form that i