That's good to know Roberto. Thanks for following up.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Roberto Ortelli
Sent: Thursday, November 16, 2006 8:41 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Prevent form submission when enter is hit with jQuery
Ah, problem solved. FYI:
$("#to").keypress(function(e){
return !(e.keyCode == 13);
});
where #to is the ID of a form [EMAIL PROTECTED] field, easy!
2006/11/16, Roberto Ortelli <[EMAIL PROTECTED]>:
> Hi all,
> all is in the title. I've found this resource but it seems not working in
FF2.0:
> http://www.cs.tut.fi/~jkorpela/forms/enter.html
>
> Thanks
>
> --
> Roberto Ortelli
> http://weblogger.ch
>
--
Roberto Ortelli
http://weblogger.ch
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/