[jQuery] The form is not submitted onKeyDown

2010-01-07 Thread Andre Polykanine
Hello everyone, I'm trying to submit the form normally as well as by pressing Ctrl+Enter. Yepp, the same task. What I'm doing is the following: var validator=$(#myform).validate( { // tralala, here go the rules, error

Re: [jQuery] The form is not submitted onKeyDown

2010-01-07 Thread Nathan Klatt
On Thu, Jan 7, 2010 at 11:04 AM, Andre Polykanine wrote: var validator=$(#myform).validate( { snip }); $(document).keydown (function (e) { if (e.ctrlKey e.which==13) { validator.form(); } }); then I'm trying to submit. If I do something wrong (for example, leave a required field blank)

[jQuery] The form is not submitted onKeyDown

2009-12-27 Thread Andre Polykanine
Hello everyone, I'm trying to sumbit the form normally as well as by pressing Ctrl+Enter. Yepp, the same task. What I'm doing is the following: var validator=$(#myform).validate( { // tralala, here go the rules, error