2ways.

1. remove the type=submit button. you need to also use javascript to
submit form.

2. add key down, key up etc. on any elements you want to avoid enter,
not only window.

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]

Reply via email to