Bug Tracker

Opened 10 years ago

Closed 10 years ago

#13109 closed bug (wontfix)

on click event gets past the form submit

Reported by: anonymous Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: git
Keywords: Cc:
Blocked by: Blocking:


In stack you can find the qactuall bug report and its realization in fiddle. Pls confirm if positive and if posible vote it back up. :)

This is a theoretical question, the bug is solved, over 2 days ago. no wich hunting, im just curios why the subit handler gets past the jqery and if this isa bug** So ppl stop grading - and provide input if you have any constructive.

I had a form which had an on click event bound to it. like

<form name = 'oldCode'> anoying legacy code old over 10 years <input type='submit' onclick='document.oldCode.submit()'> </form>

Now before that i put a jqery option which should have captured the submit action of the form:


$('correct form selector id').submit(function(){




But oddly enough this dous not ever get executed....

But when i used a standard js like

document.oldCode.submit = function(){

alert(1); all worked 100% like it shold, im asking is this a bug or a feature???


Here is an example of the code.... http://jsfiddle.net/StCPp/4/

soooo is this a bug or some kind freak of nature????



Change History (1)

comment:1 Changed 10 years ago by Rick Waldron

Resolution: wontfix
Status: newclosed

From what I can tell the question is about inline event handlers, which is on our Won't Fix list.

Note: See TracTickets for help on using tickets.