Jquery validate inside an event handler not triggered?

There is a plugin Jquery validate, which need to be called from the event handler, like so
$(document).on("submit", "form", function (e)

In fact, no matter which plug, the important thing is that inside this plugin there are also handlers, and need to put them inside my handler.
The first press of the button only triggers my handler, that is, alert("123"); works.
The next push the button already triggers the validate handlers.
How to handle validate?

The essence of the problem.
The form is loaded dynamically via ajax. So initially when you load a form document was not, it need to find. Form find just using this handler when you press the button.
And then you need to hang the validate on the form.
But my example only works when you press the button.
June 5th 19 at 21:06
1 answer
June 5th 19 at 21:08
$(document).on("submit", "form", function (e)
 if (!$(this).data('validateInitialized')) {
 $(this).data('validateInitialized', true).trigger('submit');
Thank you very much.
Your code is fully working and everything is provided.
This is exactly what was needed - nikita.Stracke commented on June 5th 19 at 21:11

Find more questions by tags jQuery