Is there a way to make sure the event handler you attach is the last in the chain of event handlers to be executed?
I have an event handler that submits a form by ajax, but at a later time, after I attach my ajax submitting handler, another handler is attached to the form to do validation logic. The validation logic should occur before the ajax submitting handler, but it doesn't since it was bound afterwards.
Is there a way to make it so my ajax submitting handler always is the last handler in the chain of handlers to be executed, without changing the order in which the handlers are bound? can you give a piece of code?
以上就是Jquery - Make sure event handler is last to be executed in chain of handlers的详细内容，更多请关注web前端其它相关文章！