Skip to main content

Bug Tracker

Side navigation

#15212 closed bug (notabug)

Opened August 13, 2014 05:40PM UTC

Closed August 13, 2014 06:27PM UTC

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.

Attachments (0)
Change History (2)

Changed August 13, 2014 05:52PM UTC by thesahiljain comment:1

_comment0: browser - mozilla and chrome \ os - windows 7 \ fiddle -

browser - mozilla and chrome,

os - windows 7,

fiddle -

Changed August 13, 2014 06:27PM UTC by rwaldron comment:2

resolution: → notabug
status: newclosed

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