title: How can I bind onchange event on dynamically created input ? (no jquery)
body: <p>I'm using a function that dynamically inject inputs .
  I want to be able to listen to these inputs changes.</p>
  
  <p>Here is what I currently have :</p>
  
  <pre><code>var input = document.createElement('input');
  input.setAttribute('value', '');
  input.setAttribute('type', 'text');
  input.setAttribute('class', 'my-custom-input');
  document.body.appendChild(input);
  </code></pre>
  
  <p>And here is what I'm trying to do : (without jquery)</p>
  
  <pre><code>$(document).on('change', '.my-custom-input', function(){
                    // do something
  })
  </code></pre>
  
  <p>Thanks by advance</p>