To clarify, Jake has shown you the "delegating" form of .on().
It would be useful to read the relevant part of the
.on()
documentation. You can register to get events from elements that don't
exist yet. The magic is the second parameter to
.on()
shown above.
.submit() is
applied to some jQuery object. It is simply a shortcut for the binding
form of .on() with
an event of submit. You cannot bind
to an element that doesn't exist yet.