Try $('form').trigger('submit');
http://docs.jquery.com/Events#trigger.28_type.2C_data_.29 On May 20, 11:40 pm, "S. Robert James" <[EMAIL PROTECTED]> wrote: > I tried doing this manually: > > if (jQuery('form').submit()) { // fire the JavaScript event, perhaps > to validate > // if true, then actually submit it > // BUG it's always true, even if event returns false! > jQuery('form')[0].submit(); > > } > > Any help would be greatly appreciated - basically I want to fire the > registered event handlers and capture their return code. > > On May 20, 2:15 pm, "S. Robert James" <[EMAIL PROTECTED]> wrote: > > > One big problem I keep on running into is that event handlers don't > > fire when the event is called via jQuery. > > > For instance, I want to disable submitting a form: > > jQuery('form').bind('submit', function() { return false; }) > > > Works like a charm. But, if I use jQuery then to submit the form, it > > still does it! Likewise with onclick events, etc. Is there any > > solution?