Its not submitting for some reason so i am trying to make it submit -----Original Message----- From: Ryan Florence [mailto:[email protected]] Sent: Sunday, 17 October 2010 6:06 AM To: [email protected] Subject: Re: [Moo] Detecting a user pressing the enter key
Usability police! I just hope your not breaking user expectations here. When I press enter in a text field and the form doesn't submit, I get grumpy. Sent from my iPhone On Oct 16, 2010, at 11:35 AM, Tim Wienk <[email protected]> wrote: > Works fine in a text-input as well, as long as you prevent the default > action of the event (which would be to submit the form): > > http://www.jsfiddle.net/DEdb4/1/ > > Also note you don't have to check by keycode, `event.key` will be set > to something more human readable. ======= Email scanned by PC Tools - No viruses or spyware found. (Email Guard: 7.0.0.21, Virus/Spyware Database: 6.16090) http://www.pctools.com/ ======= ======= Email scanned by PC Tools - No viruses or spyware found. (Email Guard: 7.0.0.21, Virus/Spyware Database: 6.16090) http://www.pctools.com/ =======
