Skip to main content

Bug Tracker

Side navigation

#5860 closed bug (worksforme)

Opened January 19, 2010 02:32AM UTC

Closed October 31, 2010 09:18AM UTC

Last modified March 14, 2012 12:15AM UTC

preventDefault() does not work in live('submit, ...) when triggered from $('form').submit()

Reported by: orderedlist Owned by:
Priority: minor Milestone: 1.4.1
Component: event Version: 1.4
Keywords: live submit Cc:
Blocked by: Blocking:

When triggering a form submission from the submit() method, the event cannot be cancelled as normal, with either return false; or event.preventDefault();

I have attached a test html file.

Attachments (1)
  • test.html (0.6 KB) - added by orderedlist January 19, 2010 02:32AM UTC.

    Example HTML of bug.

Change History (3)

Changed January 19, 2010 08:19PM UTC by orderedlist comment:1

Interestingly enough, this example works if you place id="submit" on the input, but fails without it.

Changed June 14, 2010 12:17AM UTC by dmethvin comment:2

component: unfiledevent

Changed October 31, 2010 09:18AM UTC by snover comment:3

resolution: → worksforme
status: newclosed

Works as expected in jQuery 1.4.2.