To validate a form, I use a validation plugin. Example:
$ ( '# post-form').validator()
I would like to load the plugin on a form that is dynamically created via an Ajax return. What I try:
$ (document).on ('ready', '# post-command-detail').validator ();
But it does not work. How can I activate the validator on a form created 100% dynamically?
To know: # post-command-detail is the id of the concerned form.