Bug Tracker

Opened 9 years ago

Closed 9 years ago

#15212 closed bug (notabug)

submit function out of document ready is called first, irrespective of the order (line number on page)

Reported by: thesahiljain Owned by:
Priority: high Milestone: None
Component: core Version: 1.11.1
Keywords: ready, submit, multiple Cc:
Blocked by: Blocking:


As we know that code written under document ready is just to assure that the dom elements has been loaded. But in my case , i have written a form submit function in document ready and after document ready close i have written another form submit. The expected behaviour from this is that the submit function which comes first should be called first. But here it shows unexpected behaviour. The submit function written after is called first.

Change History (2)

comment:1 Changed 9 years ago by thesahiljain

browser - mozilla and chrome, os - windows 7, fiddle - http://jsfiddle.net/vvzaymcg/

Last edited 9 years ago by thesahiljain (previous) (diff)

comment:2 Changed 9 years ago by Rick Waldron

Resolution: notabug
Status: newclosed

The submit handler defined inside the ready handler is registered _after_ the submit handler defined outside of the ready handler.

Note: See TracTickets for help on using tickets.