Skip to content

onSubmit unexpected behavior #5385

Answered by dmethvin
assachs asked this question in Q&A
Discussion options

You must be logged in to vote

In general, jQuery only calls event handlers that are attached by jQuery when a method like .trigger() is used. Each time you attach an event handler, jQuery adds it to a list of handlers so that it can be called if you use .trigger(). jQuery doesn't know what event handlers may have been attached by other methods. There may be some exception that I'm not thinking about, but that's the general rule.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dmethvin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants