Skip to main content

Bug Tracker

Side navigation

#5639 closed bug (fixed)

Opened December 11, 2009 06:12AM UTC

Closed January 19, 2010 05:55PM UTC

Binding a function to submit() a form fails in FF 3.0.15 and Chrome

Reported by: Julian Owned by: brandon
Priority: major Milestone: 1.4
Component: event Version: 1.4a1
Keywords: form submit firefox chrome bind click Cc:
Blocked by: Blocking:
Description

Bind a click handler to a function that submits a form fails with no error in 1.4a1.

If you replace $('#the_form').submit(); with alert('something'); it works fine in both versions, so it seems to be related to submit().

This bug is reproducible in Firefox 3.0.15 on Windows and Linux as well as Chrome for Windows and Linux. The issue is not present in IE6 or IE8. The page works fine when you load it with jQuery 1.3.2. I've attached a test file.

Attachments (1)
  • jqform.html (0.5 KB) - added by Julian December 11, 2009 06:15AM UTC.

    test for submit event bug

Change History (3)

Changed December 12, 2009 01:06AM UTC by Julian comment:1

This seems similar to http://dev.jquery.com/ticket/5124 - I tried the patch for that one with no success.

Changed December 12, 2009 01:07AM UTC by Julian comment:2

Nope, scratch that! The patch for 5124 fixed this issue as well, so please mark this as resolved.

Changed January 19, 2010 05:55PM UTC by dmethvin comment:3

resolution: → fixed
status: newclosed