I have used this before:

$("form:first").submit(function(){return false;});
$("#myButton").click(function(){$("form:first").get(0).submit();});

Basically prevents the form from submitting unless I explicitly
instruct it to in JS.

On Sep 25, 7:05 am, "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]


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery (English)" group.
To post to this group, send email to jquery-en@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to