On function doesn't work where the live function did
<p>I've read that the live function is deprecated and one should use the on method instead.</p>

<p>So I edited my code from</p>

<pre><code>$('form').live('submit', function (event) {})
</code></pre>

<p>to </p>

<pre><code>$('form').on('submit', function (event) {})
</code></pre>

<p>and it doesn't work anymore :-) I'm wondering why ?</p>

<p>BTW the form element is added dynamically.</p>
