Yes, I think you can do it in many ways... 1. remove <input type='submit'/> button. Then the enter will not invoke form's submit. But you should add form submit function in somewhere.
2. You can catch the 13 keycode in any element's key event, not only window object. On 9月25日, 下午1时05分, "Fabien Meghazi" <[EMAIL PROTECTED]> wrote: > Hi, > > Is there an non javascript way to avoid "enter" keystroke in an input > to trigger the form submit or am I forced to catch keystroke code 13 > in javascript ? > > If force to do in javascript, is there a way to catch keystroke event > of only one input and not window object ? Is there already a jquery > plugin for this ? > > Regards. > > -- > Fabien Meghazi > > Website:http://www.amigrave.com > Email: [EMAIL PROTECTED] > IM: [EMAIL PROTECTED]