title: Bind several Inputs to OnKeyPress event
body: <p>I have several inputs, they are created dynamically </p>
  
  <pre><code>&lt;input style="width:100%" class="fileDescription" type="text" name="' + descriptionId + '" id="' + descriptionId + '" placeholder="Write a file description, hit Enter to save" /&gt;
  </code></pre>
  
  <p>I would like to attach KeyPress event to all these Inputs and pass ID of the Input. How to do that? I have tried to use code below to attach event but that does not work. Also I do not know how to pass ID of the Input field to the binded event.</p>
  
  <pre><code>  $('.fileDescription').bind('keypress', function(e) {
              e.preventDefault();
              alert("Works!");
  
              });  
  </code></pre>