Bug Tracker


Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#10208 closed bug (fixed)

$("form").live("submit", fn) not fired from <button type="submit"> in IE8

Reported by: anonymous Owned by:
Priority: high Milestone: 1.6.4
Component: event Version: 1.6.3
Keywords: Cc:
Blocked by: Blocking:


Only with jQuery 1.6.3 in IE8, $("form").live("submit", fn) not fired from <button type="submit">.

		$('form').live("submit", function(){
			alert("before submit");
<form action="javascript:alert('submit!!!');">
	<input type="submit" value="submit by input">
	<button type="submit">submit by button</button>

it doesn't work correctly:

  • jQuery 1.6.3 + IE8

it works correctrly:

  • jQuery 1.6.3 + IE9
  • jQuery 1.6.3 + firefox7
  • jQuery 1.6.3 + chrome14
  • jQuery 1.6.2 + IE8
  • jQuery 1.6.2 + IE9
  • jQuery 1.6.2 + firefox7
  • jQuery 1.6.2 + chrome14

Any other combination, I haven't confirmed.

...Sorry for poor English (-_-;)

Change History (3)

comment:1 Changed 6 years ago by timmywil

  • Component changed from unfiled to event
  • Milestone changed from None to 1.6.4
  • Priority changed from undecided to high
  • Status changed from new to open

comment:2 Changed 6 years ago by Dave Methvin

  • Resolution set to fixed
  • Status changed from open to closed

Fix #10208. Check for button as well as input when performing the #7071 VML crash workaround for IE special-events submit code.

Changeset: 81c778b2cad268a6208544ae32d2ad5b023051a0

comment:3 Changed 6 years ago by Dave Methvin

Merge pull request #489 from dmethvin/fix-10208-button-type

Fix #10208. Check for button as well as input

Changeset: 69585ba3c7f4f49b6370f63963b7317698ead861

Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Modify Ticket

Change Properties

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.