Hi Godoy ! :)
I usually use a container which intercepts Enter key press.:
<form action="foobar">
<span onkeydown="if (event.keyCode == 13){return false;}">
<input type="text" name="value1" />
<input type="text" name="value2" />
<input type="text" name="value3" />
<input type="text" name="value4" />
</span>
<input type="submit" value="search" />
</form>
Cheers,
Roger
On 6/27/06, Jorge Godoy <[EMAIL PROTECTED]> wrote:
>
>
> Hi!
>
> Is there anything that I can "plug" to my forms that will prevent them being
> submitted by accident when the Enter key is pressed? There are some forms
> here where there's only numeric input and users tend to use the numeric
> keypad, sometimes hitting Enter by mistake...
>
> I've thought about something related to attaching an onkey<?> event to every
> element but the submit button...
>
>
> TIA,
> --
> Jorge Godoy <[EMAIL PROTECTED]>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---