title: JQuery event on text changing
body: <p>I try to detect text changing in live on an input text. Here is my attempt to do this :</p>
  <p>This code is for JQuery includes version.</p>
  <pre><code>&lt;script src=&quot;http://code.jquery.com/jquery-1.9.0.js&quot;&gt;&lt;/script&gt;
  &lt;script src=&quot;http://code.jquery.com/jquery-migrate-1.0.0.js&quot;&gt;&lt;/script&gt;
  </code></pre>
  <p>This code is for the form. Like you will see, a simple form with 2 input text (id and password) and a button.</p>
  <pre><code>&lt;form method='post'&gt;
      &lt;input type=&quot;text&quot; name=&quot;id&quot; id=&quot;id&quot; placeholder=&quot;mail adress&quot; /&gt;
      &lt;input type=&quot;text&quot; name=&quot;pass&quot; id=&quot;pass&quot; placeholder=&quot;password&quot; /&gt;
      &lt;input type=&quot;submit&quot; name=&quot;login&quot; id=&quot;login&quot; value=&quot;login&quot; /&gt;            
  &lt;/form&gt;
  </code></pre>
  <p>And finally the JQuery code that seems not working. I placed it in the <code>&lt;body&gt;&lt;/body&gt;</code> which also contains my form.</p>
  <pre><code>&lt;script type='text/javascript'&gt;
      $('#id').on('input', function () {
          alert('text changed');
      });
  &lt;/script&gt;
  </code></pre>
  <p>This short code doesn't seems to work. I followed a <a href="https://stackoverflow.com/questions/6458840/on-input-change-event">precedent question asked in this site</a>, but this solution didn't help me.</p>
  <p>The most strange thing is that it works when I copy paste this code in a snippet, but doesn't with a simple html file located in my PC. So I think the problem come from my jquery includes, possibly..</p>
  <p>May someone light my lantern ?</p>